G
Guy
Believe it or not, I never saw the file-type input tag until tonight.
I didn't know you could have a browse button on an HTML document!
So now, I'd like to submit a file to our server.
In my initial tests, I am attaching a text file containing only about 20
characters.
Is this how it works?
Will the following code submit the file content after I select the file with
the browse button and click the submit button.
Also, what does the accept parameter do?
Thanks for all,
Guy D
<HTML>
<BODY>
<FORM name=sendmsg method=POST enctype="multipart/form-data"
action="cgi-bin/test.pl">
<INPUT type=file size=40 name=af accept="*/*">
<INPUT type=submit>
</FORM>
</BODY>
</HTML>
I didn't know you could have a browse button on an HTML document!
So now, I'd like to submit a file to our server.
In my initial tests, I am attaching a text file containing only about 20
characters.
Is this how it works?
Will the following code submit the file content after I select the file with
the browse button and click the submit button.
Also, what does the accept parameter do?
Thanks for all,
Guy D
<HTML>
<BODY>
<FORM name=sendmsg method=POST enctype="multipart/form-data"
action="cgi-bin/test.pl">
<INPUT type=file size=40 name=af accept="*/*">
<INPUT type=submit>
</FORM>
</BODY>
</HTML>