Im making a newsletter for my band. i have teh mailform and everything, but something is wrong with the PHP. heres the PHP
<form>
<form method="post" action="navbarframe.php">
<div align="left">
<div align="center">
<pre align="left"><span class="style1">Sign up for Dinkum's Newsletter Name:</span><INPUT NAME="name" TYPE="TEXT" id="name" size=0> <span class="style1">Email:</span><input type="TEXT" name="email"> <input type="submit" name="submit" value="submit"></pre>
</div>
</div>
</form>
<div align="center">
</p>
<?
if($submit)
{
mail("newsletter@dinkmumrocks.com", "$email", "$name");
$subject = "Subscribe";
if(mail("newsletter@dinkmumrocks.com", "$email", "$name")) {
echo "Thank you for your subscription";
} else {
echo "There was a problem sending the mail. Make sure all the information is correct";
}
}?>
PLEASE HELP! i was up till 4 last night trying to figure out how to make a mail form. im a noob. pleeaseeee help.