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

Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2585


Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.

1568


Mention characteristics of sub procedures?

576


How will you release the memory acquired by an array variable in vbscript?

740


How to capture a runtime error in vbscript?

625






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)

3182


Which operator can be used to change the value of the operand or change the state of the condition?

569


What's the difference between vbscript and vb.net?

549


How will you format a number in percetage format in vbscript?

587


How are values assigned to the variables in the vbscript language?

567


what is the object hyrarchy in QTP for a web based application

1877


What is the purpose of regexp object in vbscript?

551


Mention what is the difference between vbscript and vba?

509


where can i learn VB scripint ?

1591


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2157