I did a search for it and i didn't find anything so i decided to write this piece of code and hope that it would help some people
the index is for login and it use session so if the user is logged in it wont show the login box anymore
the register part will check for the user exist first and then if the two password boxes are equal it will insert it into database
if you have any suggestion or question don't hesitate
just to remind you , you have to change the connect.inc.php to your own sql host , user ,password and database
Last Update : Tuesday , May 28 , 2013