First let me say that I did not write this php code. I'm real new at trying to write and implement a php file and a "Join our mailing list" form. I can not see what's wrong so I am asking for some help. When I click the submit button on the web page I get nothing. No mail sent, just a blank page. Can someone look at the code(s) for me and maybe correct ?
Here is the php code:
<?PHP
if($_POST['submit'])
{
$recipient="me@mywebsite.com";
$subject="My Web Site";
$body="
$name
$email
";
$headers='From: '.$email."\r\n".'Reply-to: '.$email."\r\n";
mail($recipient, $subject, $body, $headers);
echo "
";
}
else
{
echo "
";
}
?>
And the form code:
>Untitled Document
</pre>
<table width="63%" border="2" cellpadding="4">Join Our Mailing List NameEmailComments
</table>
<br
Thanks for looking!