Solved

Send file attachments with form submission

Posted on 2004-03-28
8
279 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

729 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