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 Posted / 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 |
Post New Answer View All Answers
How can you destroy an object in vbscript?
What is the difference between do until loop and do while loop?
What is the purpose of on error resume next statement?
What are events in the vbscript language?
What is the purpose of the err object in the vbscript language?
Which in-built function is used to format the number in the vbscript language?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
What is vbscript procedures?
What is difference between vbscript and vba?
i need to sort the data using qtp script for this how i need to write a qtp script
hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?
Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP
How to Enter Values on the Command promt using VB script
What are the environments supported by vbscript language?
What is the difference between VBScript and JavaScript?