form attachments

liunx

Guest
I'm making a form page using a cgi script, <br />
and i want to let the user attach a file (their CV) to the form and then submit it. I have set the form up to email me with the details they have submitted.<br />
<br />
I need a function which enables the user to browse their hard drive and attach the file - which will usually be a .doc file (word file) <br />
<br />
any ideas? <br />
nicke<!--content-->well the function is <br />
<input type=file><br />
<br />
this will let them search teh hard drive but you need to incorarate the attachment in the cgi snedmail part. I can't remember right off hand how to do that.<!--content-->This may give you a little help,<br />
<br />
These things are necessary for Web-based uploads:<br />
<br />
An HTTP server that accepts uploads. <br />
Access to the /cgi-bin/ to put the receiving script. <br />
A form implemented something like this: <br />
<br />
<form method="POST" enctype="multipart/form-data" action="fup.cgi"><br />
File to upload: <input type=file name=upfile><br><br />
Notes about the file: <input type=text name=note><br><br />
<input type=submit value=Press> to upload the file!<br />
</form> <br />
<br />
Not all browsers support form-based file upload, so try to give alternatives where possible. Also, if you need to do file upload in conjunction with form-to-email, the Perl package MIME::Lite handles email attachments.<!--content-->Originally posted by montroze <br />
This may give you a little help,<br />
<br />
These things are necessary for Web-based uploads:<br />
<br />
An HTTP server that accepts uploads. <br />
Access to the /cgi-bin/ to put the receiving script. <br />
A form implemented something like this: <br />
<br />
<form method="POST" enctype="multipart/form-data" action="fup.cgi"><br />
File to upload: <input type=file name=upfile><br><br />
Notes about the file: <input type=text name=note><br><br />
<input type=submit value=Press> to upload the file!<br />
</form> <br />
<br />
Not all browsers support form-based file upload, so try to give alternatives where possible. Also, if you need to do file upload in conjunction with form-to-email, the Perl package MIME::Lite handles email attachments. <br />
<br />
<br />
:) perhaps you could adapt this script or take some code from it:<br />
<br />
<!-- m --><a class="postlink" href="http://www.hotscripts.com/Detailed/10113.html">http://www.hotscripts.com/Detailed/10113.html</a><!-- m --><br />
<br />
<br />
hope this helps,<br />
<br />
c9<!--content-->
 
Back
Top