Just wondered if anyone could help me, what am i doing wrong here im trying to cant seem to get $email, $betakey or $userid to show any data i know im missing something but for teh life of me cant think tried everything i could think of fetch etc but to no avail please help
<?
session_start();
include "includes/db_connect.php";
$accepted=$_POST['accepted'];
{
mysql_query("UPDATE users SET accepted='yes' WHERE username='$accepted'");
mysql_query("SELECT * FROM users WHERE username='$accepted' AND betakey='$betakey' AND id='$userid' AND email='$email'");
$sendto = "$email";
$subject = "You've Been Accepted";
$message = "Congratulations $accepted, You have been selected to beta test GAME NAME.
Click To Activate Your Beta Account: http://www.gameurl.com/betaactivate.php?id=$userid&code=$betakey
Beta Information:
Username: $accepted
Beta Key: $betakey
Hope You Enjoy
GAME NAME Staff.
This is an automated response, please do not reply!";
mail($sendto, $subject, $message,
"From: GAME NAME<admin@gamename.com>");
print "You made $accepted a beta tester ";
}
?>
and the email i recieve (when i add my own email addy in $sendto) looks like this:
Congratulations testbeta, You have been selected to beta test GAME NAME.
Click To Activate Your Beta Account: http://www.gameurl.com/betaactivate.php?id=&code=
Beta Information:
Username: testbeta
Beta Key:
Hope You Enjoy
GAME NAME Staff.
This is an automated response, please do not reply!