hi folks. need a little help.
i have a login script where the user is asked for a username, pass1, pass2 (confirmation), and email.
the script checks that the username is unique and that the passwords match, then enters the data into the db.
my problem starts here. how do i direct the user to the second part of the sign-up process (a second, longer form) once the criteria are met?
here's a part of the code:
the question is what goes in the "problem area"? how do i tell the script "go to form2"?Code://check to see if the 2 entered passwords match if ($upass == $upass2) { $sqlquery = mysql_query("SELECT * FROM $table WHERE (uname='$uname')"); if (mysql_num_rows($sqlquery) > 0) { printf("We are sorry to inform you that the User Name <B><?php echo $Name ?></B> Is already Taken."); } else { //insert the values into the Db $sqlquery = mysql_query("INSERT INTO $table VALUES('$uname','$upass','$Email')"); printf("You have registered.<BR> User Name: $uname <BR> Password: $upass"); } } //problem area //problem area //problem area //problem area else { printf("Your Two Passwords Did Not Match"); }
is this making any sense? can anyone help??
aaaaaaahhhhhhhhhhhhhhhhhhhhh <---- sorry...




Bookmarks