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

Which function allows you to instantiate an object given its programmatic identifier or progid?

546


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

606


What is the use of option explicit in vbscript?

533


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

537


In html file what is an ideal position to include vbscript?

796






How can constants be declared in the vbscript language?

540


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.

1506


How to create a function in vbscript?

572


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3021


about vb scripting programs this type of all question& answers

1684


What is the difference between vbscript and vba?

592


Explain about the extension .hta?

609


How strcomp function works?

614


what is the standards used for writing the script in QTP

1875


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

1786