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
Which operator can be used to do an xor operation in vbscript?
What is the use of the recordset object and which statement is used to create such an object?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.
what is the difference between modular and data and keyword driven framework
What are subprocedures in vbscript?
How do you declare a variable in vbscript?
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
How many types of operators are available in the vbscript language?
Which loop is used in case of arrays in the vbscript language?
How to Convert Hex color code to color name in VB Script?
how to check whether link is disabled in QTP??
How to take whole text output from screen of Bitmap Application.
What is sql loader? Explain the files used by sql loader to load file?
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'