Hmm - originally posted in 2006?
No, I joined this website back in 2006, I think you may be looking at the wrong date
They joined in 06, this post is from today Murray.
EDIT: You'll need to look into the .php to to see what's going on...
As far as I'm aware, there were only two or three things I needed to change in the script to make it work, I'm not sure what I need to do to make the comments box work. Like I said, the e-mail works lovely, there is just no content in the e-mail. Also, it simply says "form" in the subject in the e-mail as well.
Here is the script I am using
/* Email Variables */
$emailSubject = 'form!'; /*Make sure this matches the name of your file*/
$webMaster = 'firstname.lastname@example.org';
/*design by Mark Leroy @ http://www.helpvid.net*/
/* Data Variables */
$email = $_POST['email'];
$name = $_POST['name'];
$comments = $_POST['comments'];
$body = <<<EOD
Name: $name <br>
Email: $email <br>
Comments: $comments <br>
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
/* Results rendered as HTML */
$theResults = <<<EOD
<meta http-equiv="refresh" content="3;URL=http://www.torbaytutoring.co.uk">
background-color: #444; /* You can edit this CSS to match your website*/
font-family: Verdana, Arial, Helvetica, sans-serif;
<div align="center">Thank you for your e-mail, I will get back to you ASAP</div>
Yes - sorry!
With regard to your form processing script let's check that it's running properly. Make the very first line of the script have this block of code -
echo "<pre>"; exit(print_r($_POST));
Tell us what you see when you submit the form, please (make sure you fill in the fields).
You are not specifying a method in your form - I believe the default is GET - yet your PHP is checking the POST variables which will be empty. Always best to specify a posting method in your forms.
Okay, I put this line of code in a couple of places because I wasn't quite sure where you meant. Basically it stopped the form from working
Could you elaborate a bit more on what you are suggesting I do bregent, I don't quite follow you....thanks
I mean that you need to set the form tag's method attribute:
<form action="form.php" method = "post">
thank you very much, that did the trick :-)