Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Using Request to get the details from a File Input


Message #1 by "John Howe" <johnhowe@c...> on Thu, 31 Oct 2002 15:16:22
I am still unable to read the input from the response form when I input a 
file nam as shown.

<FORM ACTION="formresp.asp" ENCTYPE="MULTIPART/FORM-DATA" METHOD="POST">
<TABLE WIDTH="100%">
<TR>
	<TD ALIGN="RIGHT" VALIGN="TOP">Enter Filename:</TD>
<%
'---
'--- Note the use of the TYPE="FILE" specification
'---
%>
	<TD ALIGN="LEFT"><INPUT TYPE="FILE" NAME="FILE1"><BR>
		</TD>
</TR>
<TR>
	<TD ALIGN="RIGHT">&nbsp;</TD>
	<TD ALIGN="LEFT"><INPUT TYPE="SUBMIT" NAME="SUB1" VALUE="Upload 
File"></TD>
</TR>
</TABLE>

On the Action form I have a statement

<% name=Request("FILE1")

response.write name

%>

but this does not work and I requitre the name of this file for further 
processing.

Anybody out there can help?

Thanks 
John

  Return to Index