Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 class variables?

1036


Explain about .wsf files?

1146


What is the difference between a dictionary and an array?

1069


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

2135


Explain the support of asp for vb script functionality?

1076


Explain about scrrun.dll in vbscript?

1095


When to use function procedures and what are its characteristics?

1082


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)

3684


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

1085


how to increase the values in text box in a given text box increament by two values by clicking on button

2197


What are the rules to name variable in vbscript?

1081


What are subprocedures in vbscript?

1107


What are the different types of operators and their order of precedence?

1046


how does vb script help in web page designing? explain with example.

1998


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

1013