Solved

Send file attachments with form submission

Posted on 2004-03-28
8
278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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
 
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Scroll 5 news at a time. 4 39
asp web application 3 43
Bootstrap list items overlap 3 38
help thx 6 24
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

730 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