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

If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

626


What is the difference between for loop and while loop?

653


Why is error handling required?

651


Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

2116


Which operator can be used to check if two numbers are equal or not in vbscript?

760






How can you fetch the value of a cookie?

641


What is Procedure or Subroutine in VB Script?

703


What are the disadvantages of vbscript?

752


how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1426


Explain the adodb.stream class?

642


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

1012


How can you create an object in vbscript?

704


Explain the scope of the variables using dim, public, and private keywords respectively.

804


Mention what are the rules to name variable in vbscript?

627


Explain about the functionality of vb script?

664