At this point it is a good idea to put some form validation code in place, so we make sure that we have all the data required to create the user account.
We do this because, as an added security measure, we will store the password in the database encrypted using MD5.
Note that you have configured the Database login details in the membersite_file.
Most of the cases, you can use “localhost” for database host.
In the first part, we are going to cover creation of the registration form and storing the data in a My SQL database.
In the second part, we will create the login form and use it to allow users access in the secure area.