This is the code in my html doc:
<form action="newsletter.php" method="post" name="newsletter" type="text" size="23" id="newsletter" onsubmit="MM_validateForm('email','','Ri... document.MM_returnValue">
<input name="submit" type="text" id="submit" size="23" />
</form>
If I enter an email address and press enter the page refreshes and thats it. If I enter an email address on the refreshed page that the thank you page (newsletter.php) comes up and says thank you while an email is sent that time to the admin address.
This is the php:
/* Subject and Email Variables */
$emailSubject = 'Capitalsal Newsletter Subscription';
$webMaster = 'admin@capitalsal.com';
/* Gathering Data Variables */
$newsletterField = $_POST['newsletter'];
$body = <<<EOD
<br><hr><br>
Email Address: $newsletterField <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);
/* Results Rendered in Html */
$theResults = <<<EOD
Tags: