Solved

Send file attachments with form submission

Posted on 2004-03-28
8
267 Views
Last Modified: 2008-01-16
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
0
Comment
Question by:Caiapfas
  • 3
  • 3
  • 2
8 Comments
 
LVL 7

Assisted Solution

by:gam3r_3xtr3m3
gam3r_3xtr3m3 earned 100 total points
ID: 10700894
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
 
LVL 2

Author Comment

by:Caiapfas
ID: 10701039
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
 
LVL 31

Accepted Solution

by:
seanpowell earned 150 total points
ID: 10701041
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
 
LVL 31

Assisted Solution

by:seanpowell
seanpowell earned 150 total points
ID: 10701051
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 7

Assisted Solution

by:gam3r_3xtr3m3
gam3r_3xtr3m3 earned 100 total points
ID: 10701457
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
 
LVL 2

Author Comment

by:Caiapfas
ID: 10708054
i need to know does standard matt's formmail ,latest verision support file submission and if it does what field name? any?
0
 
LVL 2

Author Comment

by:Caiapfas
ID: 10758879
can anyone help me on this question..?
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 10759237
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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Read about why website design really matters in today's demanding market.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now