[thelist] Need a simple file upload form...

Philippe Jadin philippe.jadin at 123piano.com
Fri May 4 15:01:32 CDT 2001


If you have access to php, create a simple file caled for instance
"mail.php", and place in it the folowing :

<?
mail("you at yourhost.com", $subject, $message);
?>

subject and message are the two fields in your html form. It's better to
hardcode your email to avoid spamers use your server. Put this file anywhere
in your server (in the same folder as your html for example), and create an
html file with a form pointing to the "mail.php" file as action.

Doing it yourself with the right tool may help, and will surely make
debuging easier, altough a one line script *should* work all the time.

Good luck !

Philippe

> Ive read through pages and pages here for the past 3 hours, and cant get
it working for some reason.
>
> I just want to have a simple form, where the user can choose a file on
their computer, press submit, and blamo, its e-mailed to me.
>
> Can anyone provide me with a simple form and .pl to go along with it?  Ive
tried a bunch allready, but nothing seems to work.
>






More information about the thelist mailing list