Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where did I come from..? 1

Status
Not open for further replies.

kenjoswe

Technical User
Sep 19, 2000
327
SE
Hi all,

I have a selectbox (Page2) that I would like to populate differently depending on what URL-that was clicked i the first place (Page1).

How can this be done?

/Kent J.
 
quick question
are you doing this via ASP or client vbscript?
ASP would be simple
simple get the referer page URL with a servervaraible request and populate the select on that condition
here would be the steps in that case
get the last page with Request.ServerVariables("HTTP_REFERER") and store in a variable

create arrays with the contents of each select possibility and on the value of the varaible holding the referer simple loop thru them placing them in the options.


---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee");alert(Nstr); }

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top