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
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
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.
Mention characteristics of sub procedures?
How will you release the memory acquired by an array variable in vbscript?
How to capture a runtime error in vbscript?
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)
Which operator can be used to change the value of the operand or change the state of the condition?
What's the difference between vbscript and vb.net?
How will you format a number in percetage format in vbscript?
How are values assigned to the variables in the vbscript language?
what is the object hyrarchy in QTP for a web based application
What is the purpose of regexp object in vbscript?
Mention what is the difference between vbscript and vba?
where can i learn VB scripint ?
create a form to accept username and password validate the username and password with using message box, display the corresponding user message