Upload file - not loading in email

hello you lovely lot!

I have created a PHP file to run along side the contact form everything else is working as it should when email is received however on the file upload bit it says name of file but it is not attached … what have I done wrong … Many Thanks ;D… complete and utter PHP novice!

this is the php
[php]$name =$_REQUEST[‘name’];
$email =$_POST[‘email’];
$telephone =$_POST[‘telephone’];
$uploadfile =$_POST[‘uploadfile’];
$comments =$_POST[‘comments’];

$body = <<<EOD

Name: $name

Email: $email

Telephone: $telephone

Upload File: $uploadfile

Comments: $comments

$headers = “From: $email\r\n”;
$headers .= “Content-type: text/html\r\n”;
$success = mail($webMaster, $emailSubject, $body,

this is the HTML page

<form id="form1" action="contactf.php" method="post" name="form1"> <p> <label>Name <input type="text" name="name" id="name"> </label> </p> <p> <label>Telephone <input type="text" name="telephone" id="telephone"> </label> </p> <p> <label>Email <input name="email" type="text" class="contact" id="email"> </label> </p> <p> <label>Comments <textarea name="comments" id="comments" cols="45" rows="5"></textarea> </label> </p> <p> <label>Upload file <input type="file" name="uploadfile" id="uploadfile"> </label> </p> <p> <label> <input type="submit" name="Submit" id="Submit" value="Submit"> </label> <label> <input type="reset" name="Reset" id="Reset" value="Reset"> </label> </p> <p>&nbsp; </p> </form>

You can’t just send a file that easy. Check out this tutorial http://www.youtube.com/playlist?list=PLF626A1B56BE54CEB

Sponsor our Newsletter | Privacy Policy | Terms of Service