954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Hello Help I'm Wired PhP


Thank you for registering, you will recieve an email soon with your login details and your activation link so that you can activate your account.

Click here to login once you have activated.



developerszone
Newbie Poster
4 posts since May 2005
Reputation Points: 10
Solved Threads: 0
 
[SIZE=2] $query = mysql_query("INSERT INTO Users (Username, Password, Name, Email, Date, IP, Actkey) VALUES ('$username','$password','$name','$email','$date', '$ip','$act')") or die(mysql_error()); $send = mail($email , "Registration Confirmation" , "Thank you for registering with UcheAlone.\n\nYour username and password is below, along with details on how to activate your account.\n\nUser: ".$username."\nPass: ".$pass."\n\nClick the link below to activate your account:\nhttp://EDITTHISURL.COM/activate.php?id=".$act."\n\nPlease do not reply, this is an automated mailer.\n\nThanks", "FROM: [email]no-reply@uchealone.com[/email]");

Please check each step using 'echo' whether the variables contain data you post using the form. It would be easier to spot any error by breakdown the script rather than putting everything in one line. Try below:

[PHP]mysql_query("INSERT INTO Users (Username, Password, Name, Email, Date, IP, Actkey) VALUES ('$username','$password','$name','$email','$date', '$ip','$act')") or die(mysql_error());

$subject = "Registration Confirmation";
$message = "Thank you for registering with UcheAlone.\n\n";
$message .= "Your username and password is below, along ";
$message .= "with details on how to activate your account.\n\nUser: ";
$message .= $username."\nPass: ".$pass."\n\n";
$message .= "Click the link below to activate your ..";
mail($email, $subject, $message);
[/PHP]

zippee
Posting Whiz in Training
294 posts since Jan 2005
Reputation Points: 10
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You