Oh man... you lost me...
Add the mail ( string) info below the sql statements or something?
$sql = "INSERT INTO fpcomments SET fpsubject='$subject', fpname='$name', fpcontent='$content', fpdate=now(), fpid='$id'";
mail($MyEmail, $subject, $content);
$query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
Then define $MyEmail in the....
Hey it worked!!!! THANK YOU THANK YOU THANK YOU
So here it is:
<?php
$username = "NOTHINGHERE";
$password = "NOTHINGHERE";
$host = "localhost";
$database = "NOTHINGHERE";
$MyEmail = "jason@jasonthomasfrance.com";
mysql_connect($host,$username,$password) or die("Cannot connect to the database.<br>" . mysql_error());
mysql_select_db($database) or die("Cannot select the database.<br>" . mysql_error());
if(!empty($name)) {
$name = ($name);
$subject = ($subject);
$content = ($content);
$id = ($id);
$sql = "INSERT INTO fpcomments SET fpsubject='$subject', fpname='$name', fpcontent='$content', fpdate=now(), fpid='$id'";
mail($MyEmail, $subject, $content);
$query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());
echo "<center>Database Updated. <br><br> <a href=\"http://www.jasonthomasfrance.com\">return to main page</a></center>";
} else {
?>
<b>Add Comments to Page</b>
<form name="blogger" method="post" action="<?php echo $PHP_SELF; ?>">
Name: <input type="text" name="name">
<br>
Subject: <input type="text" name="subject">
<br>
Content:
<input type="text" name="content">
<br>
<input type="submit" name="Submit" value="Submit">
</form>
<?php
}
?>