I’m building my first PHP site, and I’ve got the registration process working even using the new PDO API, however I don’t know what to do when I’m done successfully registering the user?
So, in other words, the register.php page doesn’t have any markup, I just used it to POST to so I could build the record.
I’m sorry guys, I just don’t yet understand how most people use PHP.
You could handle it in many different ways.
echo "Well done";thank-you.phpthat will just show you have registered message. This is good because if your user tries to refresh the page it will not attempt to generate new registration. (See http://php.net/manual/en/function.header.php)Obviously there is a lot more to sending forms – validation/sanitizing being the major part of it, but since you are just learning basics I think you can forget about it for now. Just always remember to research first and try not to invent the wheel (See example http://php.net/manual/en/function.htmlspecialchars.php to help you with sanitizing)