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 can you help me to get a code of flames using a visual basic 6
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
Mention how you can call vbscript functions?
What is the purpose of regexp object in vbscript?
Which operator can be used to check if two numbers are equal or not in vbscript?
How will you get a random number between 0 and 1 in vbscript?
Which operator can be used to change the value of the operand or change the state of the condition?
How should i Create Email invite with server-side Coding?
where can i learn VB scripint ?
Explain about tristate constants in vbscript?
why variable name should not exceed 255 characters?
When are redim statement and preserve keyword used in the vbscript language?
What methods are used to create text files and open text files in the vbscript language?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar