Send file attachments with form submission

I'm using Matt's script archive , formmail @ http://www.scriptarchive.com/formmail.html
What can I do to allow file submission? I have tried editing the perl file, but to no advail. If you need me to post my script just let me know.


Here is my contact form, that I would like to allow file submission with..
http://www.cdatasolutions.com/contactus.htm
LVL 2
CaiapfasAsked:
Who is Participating?
 
seanpowellConnect With a Mentor Commented:
Just a note Caiapfas,
For security reasons, I would strongly suggest you use the nms version of Matt's script (even he agrees...)

http://nms-cgi.sourceforge.net/scripts.shtml

The documentation is also more comrehensive...

Thanks,
Sean
0
 
gam3r_3xtr3m3Connect With a Mentor Commented:
you form tag should be something like this:

<form method="post" enctype="multipart/form-data">

having an encoding type as multipart/form-data
which tells the server that is submitted both form input and an uploaded file.
0
 
CaiapfasAuthor Commented:
So allI need is , to add a form field, Text box and browse button, and the script will handle this? just change the above?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
seanpowellConnect With a Mentor Commented:
You may also want to look at their TFMail (Improved Form Mail) which can handle file uploads as well...

(I have no idea if the basic formmail listed above can handle file uploads out of the box.)
0
 
gam3r_3xtr3m3Connect With a Mentor Commented:
to upload a file, you should have a file box. not a text box and a seperate browse button.

<input type="file" name="file1" />

also not that fileUpload is a reserved word for JavaScript so it shouldn't be used as the object name.

gam3r
0
 
CaiapfasAuthor Commented:
i need to know does standard matt's formmail ,latest verision support file submission and if it does what field name? any?
0
 
CaiapfasAuthor Commented:
can anyone help me on this question..?
0
 
seanpowellCommented:
Did you check the link and the other formmail posted? They should solve the problem for you :-)

>>For security reasons, I would strongly suggest you use the nms version of Matt's script (even he agrees...)
http://nms-cgi.sourceforge.net/scripts.shtml

>>You may also want to look at their TFMail (Improved Form Mail) which can handle file uploads as well...
0
All Courses

From novice to tech pro — start learning today.