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

Hi I'm stuck again! I am trying

Status
Not open for further replies.

stessie

Programmer
Nov 22, 2000
26
IE
Hi
I'm stuck again!
I am trying to pass variables which I am picking up from a form as part of a URL to another form

<INPUT TYPE=&quot;TEXT&quot; NAME=&quot;description&quot; style=&quot;font-size: 10;&quot; SIZE=12 MAXLENGTH=100 VALUE=&quot;&quot; &_
Request(&quot;description&quot;) & &quot;&quot;></TD>

I now add a value to the text box description
However when I try Request.Form(&quot;description&quot;) the value is empty
Any idea's?

Thanks
Stessie
 


stessie,

If you are using METHOD=GET, use request.querystring(&quot;name&quot;)

If you are using METHOD=POST, use request.form(&quot;name&quot;)


fengshui1998
 
Two comments:
1) If you use Request(&quot;name&quot;) then you don't have to worry about what type of request is being sent. ASP is first check the Querystring, then the POST data, then the Session, then the Cookie. Don't quote me on the last two.

2) It is hard to tell what is happening in your example. It would help if you included more code. Is this output in a Response.write? We don't know based on your example.

Try:
Code:
<INPUT TYPE=&quot;TEXT&quot; NAME=&quot;description&quot; style=&quot;font-size:10;&quot; SIZE=12 MAXLENGTH=100 VALUE=&quot;<%=Request(&quot;description&quot;)%>&quot;>
Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top