PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$insert ="INSERT INTO `users` (user_name, user_password, user_email) VALUES ('".$_POST[$username_pos]."',
'".$_POST[$password_pos]."', '".$_POST[$email_pos]."')";
//you might want to change this to
$insert ="INSERT INTO `users` (user_name, user_password, user_email) VALUES ('".$username_pos ."',
'".$password_pos."', '".$email_pos."')";
2) If your registration form is in Registration.php, then you wont need that code to insert them into the session variable. You can directly call the post variables in the dbscript(register.php)
Last edited by Benjamin on Tue May 26, 2009 10:53 am, edited 1 time in total.
Reason:Changed code type from text to php.