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

write a Vb script to find a whther a selected drive exits.

1 Answers   CTS,


I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

0 Answers  


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)

0 Answers   Quest,


Difference between Do while loop and while wend loop

1 Answers  


Is it possible to pass optional argument to function in vb script?

2 Answers  






write a vbscript for traffic signal

1 Answers  


Here in my automation tool, i am retreiving some values and i need to store this values in the excel. How can i achieve this?. We are using VBA as scripting language. please let me know if you require any further inputs.

1 Answers  


How can you have different number of cells for each row of a table in HTML?

2 Answers  


I want good books or good sites for scripting.Can any one help me.

0 Answers   Wipro,


Write a program using Java Script / VBscipt that checks if two matrices have identical values in all the elements

1 Answers   Ignou,


i want to when we will write the scripts either after getting the build or after getting the SRS?

3 Answers  


what is the differenece btwn scripting language and programming language

4 Answers  






Categories