This small script displays a login box for people to login to your website. Once they hit the submit button the data is then verified via a MySQL database. If the login is incorrect they are redirected back to the login page. If the login is valid then the script sets a cookie. Using this cookie you can now protect any page you want or display different information based on who is logged in at the current time. |