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






Suppose by navigation I went from 1 st page to 5 page ,so Write a generic script for coming from a..

Answer / 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




More VB Script Interview Questions

why do u choose to go for testing why cant for devoloping

0 Answers  


How to add actions in driver script to run those actions in QTP?

0 Answers  


Why do we use Option Explicit?

6 Answers  


1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)

0 Answers   iFlex,


Write a program to create a Dynamic array of size 5 elements and display all the elements.

1 Answers  






accept an email id & validate it .email id should not exceed 25 characters the mail id should contain 3 characters excluding domain name,@ and .(dot) the last 3 characters of the domain should be net,com or org

2 Answers  


Description.Create

0 Answers   IBM,


How do display output message without using msgbox function?

5 Answers  


How can I get the value of an object property or variable in another frame?

1 Answers   Citi Bank,


write a vb script to generate fibonnaci numbers

1 Answers  


Can anyone help me in write coding to get this pattern * ** *** ****

3 Answers  


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

0 Answers  






Categories