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!

Accessing form variables

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have the following code where I go to the same page either through the submit button or through a link. But When I go to the other page using the submit button then there is no problem using the form variables as
Request.form("QS")

here is the small code:

<INPUT TYPE=hidden NAME='qs' VALUE=&quot;something&quot;>
<A href=&quot;y.asp&quot;>Click Here</A>
<INPUT id=submit1 type=submit value=Submit name=submit1>

but when I access the other page through the link and try to get the values as Request.Form(&quot;QS&quot;) then it does not show any values. How can I access the values if I go through a link.

Thanks
 
try appending the value to the link like this

<a href=&quot;y.asp?qs=something&quot;>Click Here</a>

then getting it on y like this

request.querystring (&quot;qs&quot;)


hope this helps

rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top