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!

Why request.form does not work ?

Status
Not open for further replies.

juanferman

Programmer
Nov 14, 2001
40
US
I have this form:

<form method=&quot;post&quot; name=&quot;form&quot; ENCTYPE=&quot;multipart/form-data&quot; action=&quot;save.asp&quot;>

<INPUT type=&quot;hidden&quot; name=&quot;Name&quot; value=&quot;peter&quot;>
<input type=&quot;file&quot; name=&quot;Imagen&quot; size=&quot;40&quot;>

</form>

And the save.asp is:

<%
response.write request.form(&quot;Name&quot;)
%>

But does not works. Does no print anything.

Any body of you knows WHY ?

Thanks in advance

===================
::) Juan F. Sarria
 
try this

<%
response.write (request.form(&quot;Name&quot;))
%>

if it dosn't like that (sometimes it does not)

try this

<%
name = request.form(&quot;Name&quot;)
response.write (name)
%>

AJC
 
Thanks but note that the form is

ENCTYPE=&quot;multipart/form-data&quot;

The point is how can I read data from this kind of forms.

===================
::) Juan F. Sarria
 
Add

<input type=&quot;submit&quot; value=&quot;Go&quot; />

within the form. codestorm
Fire bad. Tree pretty. - Buffy
Hey, I'm operating on a limited mental budget here.
<insert witticism here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top