Suppose by navigation I went from 1 st page to 5 page ,so
Write a generic script for coming from any page to the 1st
page and by executing where the page may be it will come to
1st page
Answer / priyesh pandya
To use this code for your navigation all you links are going
to look like this: filethatcodeisin.php?id=page and it will
actually take you to the page which you specified above.
<?php
switch($id) {
default:
include('index.html');
/* the url to your main page*/
break;
case "page1":
/*link id, the "title" what ever you wanna call it*/
include('page1.html');
/*the link id page file, the file it will go to*/
break;
case "page2":
include('page.html');
break;
case "page3":
include('page.html');
break;
case "page4":
include('page.html');
break;
case "page5":
include('page.html');
}
?>
| Is This Answer Correct ? | 1 Yes | 2 No |
What is a class in CSS?
what is the standards used for writing the script in QTP
How will you get a combined string from array of string in vbscript?
Explain about the extension .hta?
why variable name should not exceed 255 characters?
How strcomp function works?
how to write basic programs in VB Script like addition, multiplication?
what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next
In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?
How to open excel in vb script?
How to capture a runtime error in vbscript?
How can you test font size, type and color using QTP tool?