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 string functions in vbscript?
Is VB Script Case sensitive or Case insensitive?
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
Difference between dim,public and private variables in vb script?
Which function is used to perform string comparison?
We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?
What is the extension of the vbscript file?
Explain about the asc function?
What are keywords in the vbscript language?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
What is sql loader? Explain the files used by sql loader to load file?
What is the difference between vb debugger and the script debugger?
What is the use of the formatdatetime function in the vbscript language?
What is the use of the instr function?
Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?