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

how to find number of characters(letter a) in the sentence Rain Rain Go away

4 Answers  


What is the scope of a constant declared using public?

0 Answers  


Explain about the asc function?

0 Answers  


what is the function to get the ascii value of the character?

6 Answers   Netxcell, Oracle,


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

0 Answers   IBM,






In what way program "hello world" you can write in vbscript?

0 Answers  


Explain sga memory structures?

0 Answers  


How to replace junk code recorded by QTP with a mall function.

0 Answers  


Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)

0 Answers   TCS, Wipro,


What is the difference between function and procedure?

0 Answers  


Both Static and dynamic arrays are handled by VB script. Is it true?

0 Answers  


What is the difference between Javascript & Vbscript?

2 Answers  


Categories