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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie question 1

Status
Not open for further replies.

tvbruwae

Programmer
Aug 9, 2001
224
EU
Hi

Recently I've been working with different scripting languages like Java and PHP, but now I need to write an ASP application with Visual Interdev. My question : when passing a parameter in an URL ( how can I access it in mypage? Do I need to add a prefix (like $temp, %temp, etc.), or do I have to define it separately? I tried a couple of these with response.write (temp), but I never get the correct output.

Thanks for helping me out.
 
U have to use:
Request("temp") for all variables

Request.QueryString("temp") just for those sended by the command line like your "temp" variable

Request.Form("temp") just for those submited by an form

i use Request("temp") or Request("variable name")
temp is just an variable name... ________
George, M
 
or u may place tha valus in another variable to use it later:

myAspVariable=Request("myHtmlVariable")

in your example:

temp=Request("temp")
Response.Write(temp)

Hope this helps you... ________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top