# Really simple, but really need help

**URL:** https://forum.kirupa.com/t/really-simple-but-really-need-help/125707
**Category:** Uncategorized
**Created:** [October 16, 2004, 5:24pm UTC](https://forum.kirupa.com/t/really-simple-but-really-need-help/125707 "2004-10-16T17:24:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hotwireddriveby](https://avatars.discourse-cdn.com/v4/letter/h/97f17d/32.png) [@hotwireddriveby](https://forum.kirupa.com/u/hotwireddriveby)
#### Post date: [October 16, 2004, 5:24pm UTC](https://forum.kirupa.com/t/really-simple-but-really-need-help/125707/1 "2004-10-16T17:24:35Z")

</div>

Im making a newsletter for my band. i have teh mailform and everything, but something is wrong with the PHP. heres the PHP

```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.
