i want to include my email address in this code as the FROM:. how do put the code in so that when ppl receive the confirmation email my email is shown?
else{
$getid = mysql_query("SELECT * FROM 4wap_top where name = '$name' ");
while($get = mysql_fetch_array($getid)){
$id = $get['id'];
$sendto = $get['mail'];
$subject = "4WAP Toplist link\n";
$message = "toplist, $mymail\n\nRegistration successful!\nplease place a link from your site to:\n$yoursite?id=$id\n";
mail($sendto, $subject, $message);
}
print"Registration Successful!
please place a link from your site to:
".$yoursite."?id=".$id."
to increase your rating.
This link has also been emailed to:
".$sendto."
<a href=\"index.php\">Main Menu</a>
";
= = = = = The more you laugh...the longer you live. Read more jokes at http://fun-files.co.cc