My membership input html using php3 to respond with a email works fine except in the recieved email From: does not show a proper name. It puts From:Nobody which makes it look like spam. The database also works fine.
Here is the php3
/ the site administrator's email address /
$adminaddress = "tom@apluscopiers.com";
/ make connection to database /
MYSQL_CONNECT($hostname,$username,$password)
OR DIE("Unable to connect to database");
@mysql_select_db( "$dbName") or
die("Unable to select database");
PRINT "<CENTER>";
PRINT "Hello, $first.";
PRINT "<BR><BR>";
PRINT "Thank you for your joining the A-Plus VIP List.<BR><BR>";
PRINT "We will send information to $email,
and have added you to the list of Members";
PRINT "</CENTER><BR><BR>";
/ Send relevant emails /
mail("$email", "Your name has been added to our list.",
"$first\nThank you for your support!\n
We added you to the Membership List!
Please feel free to call with any questions or comments.
Any changes please E-mail Tom at: tom@apluscopiers.com.");
mail("$adminaddress",
"Visitor request for info.",
"$first $last added to A-Plus VIP List.\n
The email address is $email.");
/ Insert information into table /
$sql = "INSERT INTO gfga (first,last,addr,city,state,zip,phone,email) VALUES ('$first','$last','$addr','$city','$state','$zip','$phone','$email')";
$result = mysql_query($sql);
PRINT "<CENTER><b>To ADD another player hit BACK BUTTON and change Name and hit Enter New Information.</center></b>";
/ Close the database connection /
MYSQL_CLOSE();
?>
What did I miss?