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

A Type File Field - Storing The Value When Page Refreshed 1

Status
Not open for further replies.

FontanaS

Programmer
May 1, 2001
357
US
I have a file field that the user selects a file that I will upload to the server,

After the user selects a file from their pc, IF the page gets refreshed (which it might- a couple things in the web page refreshed the form to perform calculations), how do i keep the value the user entered before the page was refreshed?

I tried adding the value="<%=Request("OrderFile3")%>"></td>
But it does not work. Any suggestions for a type "file" field?


<td align="center"><input type="file" name="OrderFile3" size="40" value="<%=Request("OrderFile3")%>"></td>
 
the code you showed would only work if the form containing the file was actually submitted to the server... meaning the file was already sent up.
 
Ok. It wouldn't be at this point. There is a bunch of other fieldsthe user must enter before the file would be updated.

Thanks!
 
perhaps you could restructure the interface so that the user only chooses the upload file after things have settled down vis-a-vis the page refresh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top