Free PHP authentication Script

This is a quick and dirty solution. Because of that… it is oh so easy and simple.

Included in this zip file are 6 files:

header.php
include.php
footer.php
loginform.php
checklogin.php
index.php (sample implementation)
style.css (for ugliness!)

It’s very very simple. Any page that the user needs to be logged in to access, include the header.php file at the very beginning of your page, and the footer.php (optional, cleaner code) at the bottom.

You’ll have to manually create the database, and create a table (named “login_users” by default). The table should have two fields: username and password. Create as many users as you want, and feel free to edit and reuse this code as much as you’d like. All you should need to edit to get this working are the variables at the top of the include.php file. I consider this an alpha release, and hope to get some feedback telling me that it works as expected.

Download loginscript_alpha1.zip

This entry was posted in development, php. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WP Hashcash

Subscribe without commenting