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

Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario

4 Answers   AppLabs, IBM,


Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

0 Answers  


what is the function to display current date?

4 Answers  


what is descriptive programming in QTP and what is environment variable in QTP? where we store and what is its use?

4 Answers   Perot Systems,


Illustrate briefly about the different types of statement

0 Answers  






What are events in the vbscript language?

0 Answers  


write a vb script to find simple interest using functions

1 Answers  


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

0 Answers  


What are the valid scopes of a variable in vbscript?

0 Answers  


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

0 Answers  


Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function

0 Answers   Microsoft,


how to declare a variable in vbscript using vbscript

4 Answers  


Categories