Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: How to read form that enctype="multipart/form-data" - August 25, 1998 at 05:54:00

You are here: irt.org | BBS | Re: How to read form that enctype="multipart/form-data" [This BBS is closed]

Posted by Jason Nugent on August 25, 1998 at 05:54:00:

In Reply to: How to read form that enctype="multipart/form-data" posted by john on August 25, 1998 at 04:28:34:

:
: I build a form in this way

: <Form action="readform.asp" Name="myform1"
: method=post enctype="multipart/form-data">
: <input type=text name=textfield
: value="value">
: <input type=file name=field3
: value="c:\time.doc">
: <input type=submit name=submit
: value=submit>
: </form>

: then how can read the field out in the proceding
: asp?

: <%=Request.Form ("textfield")%> just
: returns an empty value

I haven't done any ASP work, but with Perl you have to look for the boundary that exists above and below your submitted file, and then parse out the information between it. If you don't want to do it yourself (it's not that bad, really... try it anyway), check out CGI.pm, which has a routine for doing it for you.

Jason
Follow-ups:

You are here: irt.org | BBS | Re: How to read form that enctype="multipart/form-data" [This BBS is closed]

©2018 Martin Webb