hey,
pulling my hair out over this. can anybody see where I am going wrong with this simple php contact form? every time the email comes through, all of the fields are there but the entries are blank and so is the senders address? here is the coding .. (wont show results page html as very long)
cheers,
gary
<?php
/* Subject and Email Variables */
$emailSubject = 'Box Of Frogs Contact Form';
$webMaster = '[email protected]';
/* Gathering Data Variables */
$emailField = $_POST['email'];
$nameField = $_POST['name'];
$phoneField = $_POST['phone'];
$interestField = $_POST['interest'];
$contactField = $_POST['contact'];
$commentsField = $_POST['comments'];
$offersField = $_POST['offers'];
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Name: $name <br>
Phone: $phone <br>
Interest: $interest <br>
Contact: $contact <br>
Comments: $comments <br>
Offers: $offers <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered as HTML */
pulling my hair out over this. can anybody see where I am going wrong with this simple php contact form? every time the email comes through, all of the fields are there but the entries are blank and so is the senders address? here is the coding .. (wont show results page html as very long)
cheers,
gary
<?php
/* Subject and Email Variables */
$emailSubject = 'Box Of Frogs Contact Form';
$webMaster = '[email protected]';
/* Gathering Data Variables */
$emailField = $_POST['email'];
$nameField = $_POST['name'];
$phoneField = $_POST['phone'];
$interestField = $_POST['interest'];
$contactField = $_POST['contact'];
$commentsField = $_POST['comments'];
$offersField = $_POST['offers'];
$body = <<<EOD
<br><hr><br>
Email: $email <br>
Name: $name <br>
Phone: $phone <br>
Interest: $interest <br>
Contact: $contact <br>
Comments: $comments <br>
Offers: $offers <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results rendered as HTML */