Sign in to follow this  
Followers 0
LordMysterious

Send text file with form, read in response

2 posts in this topic

Hey Guys

 

Not quite sure how to word this but here goes...

 

I have a basic form with one input to insert a file, specifically a plain text file.

 

I wish to add a text file and send it with the form, then on the response page read the text in from this file and store it in a variable so that it can be manipulated (it's a delimited text file, I intend to use JavaScript to separate it into individual page variables and assign these to text fields, if possible).

 

Is this even possible? I've tried searching but I'm not entirely sure what I'm searching for.

 

My form is as follows:

<form name="form1" action="nextPage.asp" method="post"><div align="center"><table width="500" height="250" border="0" style="border-collapse: collapse" bordercolor="#111111" cellpadding="2" cellspacing="0" bgcolor="#336699"><tr><td align="center"><p align="center"><input type="file" id="myFile"></td></tr></table></div></form>

Please help

 

Thanks

Share this post


Link to post
Share on other sites

If you're using classic ASP, then out of the box it does not make handling file uploads easy. The best thing to do is install a file upload component to do the work of dealing with the incoming form for you. There should be plenty of information about handling file uploads in ASP online, but much of it is probably out of date because classic ASP is old and has been replaced with ASP.net.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0