Re: send attachment with form
by "Darrell King" <darrell(at)webctr.com>
|
Date: |
Sun, 14 Oct 2001 14:41:36 -0400 |
To: |
"HWG Basics" <hwg-basics(at)hwg.org>, "Blue Tapp" <blue(at)bluesarthouse.com> |
References: |
bluesarthouse |
|
todo: View
Thread,
Original
|
|
1) The form type must be correct. To do this, add this attribute to your
form tag:
enctype='multipart/form-data'
2) Then, you need to add the form field for the button:
<.input type='file' name='blah' value='' />
3) Your script must be capable of understanding and processing the input. I
am not sure about formmail, as I have never used it, but I know CGI and
CGI::Minimal can handle it, so there are many scripts out there that will
allow you to do it...I wrote a couple of them. It's also easy enough in
PHP.
Someone else will probably be able to confirm or deny formmail's
capabilities in this area.
D
----- Original Message -----
From: "Blue Tapp" <blue(at)bluesarthouse.com>
I am setting up a simple form (using formail.cgi) which sends the submitted
info to an e-mail address. Here's my question. I also want to allow the
user to attach a file from their hard drive to send along with it. So what
needs to happen is that they click on an "attach file" button and a browser
window opens up. They select the file, click on "attach" and then "send"
and the submitted info is sent to the designated e-mail address along with
the attached file. I have seen this done all over the place; I just need
to be pointed in the right direction to find out how to set it up.
TIA!
Blue
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA