php login form

Making a login form using PHP

This is in continuation of the tutorial on making a membership based web site. Please see the previous page PHP registration form for more details. Download the code You can download the whole source code for the registration/login system from the link below: The ReadMe.txt file in the download contains detailed instructions. The login form Here is the HTML code for the login form. <form id='login' action='login.php' method='post' accept-charset='UTF-8'> <fieldset > <legend>Login</legend> <input type='hidden' name='submitted' id='submitted' value='1'/> <label for='username' >UserName*:</label> <input type='text' name='username' id='username' maxlength="50" /> <label for='password' >Password*:</label> <input type='password' name='password' id='password' maxlength="50" /> <input type='submit' name='Submit' value='Submit' /> </fieldset> </form> Logging in We verify the username and the password we received and then look up those in the database.

Continue Reading →