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!
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: Posting Code in the Forums to learn how to do it too.
Im trying to create a register page for my web site, coded it to the best of my ability and below is what I got. If info is missing, I get the missing info error, if the user name is taken, I get the user name taken error, and if the passwords do not match, I get that error. Unfortunately, if everything is right, I get a black page! Any help would be greatly appreciated!
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: Posting Code in the Forums to learn how to do it too.
On line 36 you are closing the "if ($_POST['submit'])". This comes before you output the HTML. So, there is a blank page. Based on how you've done it, you should replace line 36 with ... header('Location: register.php?success=true'); } ... and then replace line 46 with ... } elseif ($_GET['success']) { echo "Success!"; }
First off - to pickle - sorry, and thank you for replacing it to the correct forum.
Secondly, tried the suggested changes with no luck, I still get:
pass mismatch= password error, retry
username taken= user name taken, retry
missing info= missing info error, retry
everything correct= black page (previous error code if any in address bar)