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

What are string functions in vbscript?

0 Answers  


In QTP how to insert a data base check point for web based application and simultaneous link to code in expert veiw. hw to retrieve a data(single coulumn from server) that matches with inserted value manually or exported from excel sheet.

2 Answers  


Explain the support of asp for vb script functionality?

0 Answers  


write a vb script to display the size of the folder,date created and name of the folder

1 Answers  


How regexp.execute method works?

0 Answers  






Difference between dim,public and private variables in vb script?

0 Answers  


How to search word in a string without using instring function?

1 Answers   CSS Corp,


how to genarate a random numbers in vb?

2 Answers  


How will you release the memory acquired by an array variable in vbscript?

0 Answers  


How to Pass Multiple values in functions by using vb script? Function value(arg1,arg2) N1=arg1+arg2 N2=arg1-agr2 N3=arg1*agr2 N4=arg1/arg2 Value= How to pass ? End Function

3 Answers   iGate,


How will you check that a variable is an array in vbscript?

0 Answers  


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

0 Answers  


Categories