hello all,
I was looking in the coding library for a script to help me upload a file to an email.
I checked the coding library and all it told me was the html part, not the php part. I was hoping someone could hellp me with the code I need. this is my html form and below is my php code.
<form ACTION="email3.php" METHOD="POST"><br />
<table width="320" cellpadding="0" cellspacing="0">
<tr><td width="150"> </td><td width="20"><INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000"></td><td width="150"> </td></tr>
<tr><td width="150">Select File:</td><td width="20"><img src="images/spacer.gif" width="20"></td><td width="150"><input type="file" name="file" id="file" /></td></tr>
<tr><td><input type="hidden" name="submit_form" id="register_form" value="submit form">
</td><td><img src="images/spacer.gif" width="20" height="5"></td><td width="430"> </td></tr>
</form>
and my PHP
<?php
$email = "jbgraphicdesign@yahoo.com";
$subject = "Submit Form";
$body = <<<EOF
My first name is $address.
My street is $street.
My phone is $phone.
My email is $email.
Form is $submit_form.
EOF;
$headers = <<<EOF
From: $name <$email3>
Return-Path: <$email3>
EOF;
mail($email,$subject,$body,$headers);
header("Location: thankyou.htm");
"exit;"
?>
I thank you all in advance.
justin
jbgraphicdesign@yahoo.com