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


Please Help Members By Posting Answers For Below Questions

What are string functions in vbscript?

848


Is VB Script Case sensitive or Case insensitive?

846


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?

3781


Difference between dim,public and private variables in vb script?

741


Which function is used to perform string comparison?

805


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?

1967


What is the extension of the vbscript file?

760


Explain about the asc function?

817


What are keywords in the vbscript language?

739


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

718


What is sql loader? Explain the files used by sql loader to load file?

861


What is the difference between vb debugger and the script debugger?

808


What is the use of the formatdatetime function in the vbscript language?

766


What is the use of the instr function?

789


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

762