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
What are class variables?
Explain about .wsf files?
What is the difference between a dictionary and an array?
Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder
Explain the support of asp for vb script functionality?
Explain about scrrun.dll in vbscript?
When to use function procedures and what are its characteristics?
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
how to increase the values in text box in a given text box increament by two values by clicking on button
What are the rules to name variable in vbscript?
What are subprocedures in vbscript?
What are the different types of operators and their order of precedence?
how does vb script help in web page designing? explain with example.
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?