Validating forms using php
Now that we gathered all the data, we need to store it into the database.
In the second part, we will create the login form and use it to allow users access in the secure area.We will have all our data available in the Notice that we use PHP function md5() to encrypt the password before inserting it into the database.Also, we make the unique confirmation code from the user’s email address.Of course, we can ask for more information at this point, but a long form is always a turn-off. Here is the registration form: So, we have text fields for name, email and the password.Note that we are using the password widget for better usability.
Please note that because MD5 is an one-way encryption method, we won’t be able to recover the password in case the user forgets it.