Help with my contact form php script!!?

Hello, I am having a problem with my contact form php script.
When I use the form and submit it, it sends an email to the right place and the body and subject of the mail is correct but the values that I typed in such as name and email do not show up. In the email it is simply:

________________________________________

Name:
Email:
Artist:
Subject:
Message:

It is empty. My current PHP code is as follows:

<?php

/* Subject and Email Variables */

$emailSubject = 'Basement Studio Web Enquiry';
$webMaster = '[email protected]';

/* Gathering Data Variables */

$nameField = $_POST['name'];
$emailField = $_POST['email'];
$artistField = $_POST['artist'];
$subjectField = $_POST['subject'];
$messageField = $_POST['message'];

$body = <<<EOD
<br><hr><br>
Name: $name<br>
Email: $email<br>
Artist: $artist<br>
Subject: $subject<br>
Message: $message<br>
EOD;

$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$seccess = mail($webMaster, $emailSubject, $body, $headers);

/* Results as HTML */

$theResults = <<<EOD
<html><body>Congrats!!</body></html>
EOD;
echo "$theResults";

?>

I will be so grateful if someone can help me in finding out what is wrong with my script.. also if anyone has any idea how to involve an IP address of the person who submitted the form into the body of the email that would be fantastic

Thanks in advance
sorry, also the website where the website is located where the script is on is:

www.livingfortodayband.co.uk/basement2/contact.html
The website is <a href="http://www.livingfortodayband.co.uk/basement2/contact.html">http://www.livingfortodayband.co.uk/basement2/contact.html</a>
hmm it wont show the website... sorry lets try this...

www.livingfortodayband.co.uk/basement2 and then after that put this (/contact) followed by the html final tag (.html)

THis might work?
 
Back
Top