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 function allows you to instantiate an object given its programmatic identifier or progid?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
What is the use of option explicit in vbscript?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
In html file what is an ideal position to include vbscript?
How can constants be declared 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.
How to create a function in vbscript?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
about vb scripting programs this type of all question& answers
What is the difference between vbscript and vba?
Explain about the extension .hta?
How strcomp function works?
what is the standards used for writing the script in QTP
i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me