//error handling if((!$username)||(!$fname)||(!$lname)||(!$email)||(!$pass1)||(!$pass2)){ $message='Please insert all fields into the form below.'; }else{ if($pass1 != $pass2){ $message ='Your password fields do not match.'; }else{ //securing the values of the variables $username = preg_replace("#[^0-9a-z]#i","",$username); $fname = preg_replace("#[^0-9a-z]#i","",$fname); $lname = preg_replace("#[^0-9a-z]#i","",$lname); $pass1 = sha($pass1); $email = mysql_real_escape_string($email);
//check duplicates $user_query = mysql_query("SELECT username FROM members WHERE username='$username' LIMIT 1")or die("Could not check username"); $count_username = mysql_num_rows($user_query);
$user_query = mysql_query("SELECT email FROM members WHERE email='$email' LIMIT 1")or die("Could not check Email"); $count_email = mysql_num_rows($email_query);
You don't have an entry called user in your form. You'll never pass the first isset check without it. Isset should be given every item you expect to be provided with to verify they exist prior to useing them.
I'm not talking about a print on the form, I'm talking about a print on the processing script register2.php. No matter the outcome of the script, it produces no output.