Recently I had an inquiry about how I would go about creating a directory in a PHP script using a FORM with POST / GET data. Creating a Directory from a PHP script using PHP is not all that easy and should be done with caution, as you want to make sure that you validate the input and prevent un-wanted characters from being used to create a directory.
Looking through many tutorials online I come across many outdated user registration and login systems that are being used by users who end up having to update their code just to get the user registration script to work and function properly. Today I decided to write my own version of a very simple User Registration and Login System using PHP and MySQL. The following script and code has been tested under PHP 5.3 and MySQL 5, but should work for any version of PHP and MySQL. Lets start up the mower and get mowing.