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
EOD;
$headers = “From: $email\r\n”;
$headers .= “Content-type: text/html\r\n”;
$success = mail($webMaster, $emailSubject, $body,
$headers);[/php]
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> </p>
</form>