I need a PHP script that will let a user register and then login and store plain text in his account. I already have the HTML side of it done, just need you to provide the PHP/MySQL workings. You can see the screenshots attached of how simple it will be. Please code the script as simply as possible with PHP only, and for the MySQL just give me the dump, I am experienced.
Again, please code the script as simply as possible by hand, I do not want a programmer that is going to use some huge login/register system they downloaded. Also please comment the main parts of your code, you do not need to comment everything. Lastly, make sure your code is not vulnerable to any attacks. I have been very detailed on each page below. I will send the HTML and CAPTCHA to the winning bidder of course.
Process the login form and use "trim" along with "strip_tags", then verify by PHP "strlen" that the username and password are not longer than 15 characters or the form is not blank. Display any errors on the same page.
Again process the form with "trim" and "strip_tags", verify the username/password is not longer than 15 chars and they at least typed something. I already have a simple CAPTCHA that you will use, it is a file less than 1KB and just uses PHP and the GD image functions. Display any errors on the same page.
Their Account page
Just display their name where I have shown it and just use PHP "strlen" to make sure they do not store more than 2,500 characters in their account's textarea. Then make the logout link functional.
MySQL side of the script
Give me the dump to import and create everything.