PHP Tutorial: PHP Login Script Creation
4.2 (22 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
328 students enrolled
Wishlisted Wishlist

Please confirm that you want to add PHP Tutorial: PHP Login Script Creation to your Wishlist.

Add to Wishlist

PHP Tutorial: PHP Login Script Creation

Create Membership Based Communities, Discussion Boards, eCommerce Sites and more after Learning User Registration
4.2 (22 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
328 students enrolled
Last updated 10/2016
Current price: $12 Original price: $20 Discount: 40% off
4 days left at this price!
30-Day Money-Back Guarantee
  • 2 hours on-demand video
  • 1 Article
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion

Training 5 or more people?

Get your team access to Udemy's top 2,000 courses anytime, anywhere.

Try Udemy for Business
What Will I Learn?
  • Understanding User Registration Systems
  • Set up a Database
  • Use HTML to Design Registration Forms
  • Setup Encryption
  • Set up the Hash Function
  • Obtain Data from User Forms
  • Secure Data
  • Check Data Submitted
  • Deal with Errors
  • Verifying Form Submissions Against Database Information
  • Inserting Information into a Database
  • Work with Session Data
  • Create an Activation Database
  • Handle Activation Activity
  • Deal with User Sessions
  • Create "Remember Me" functionality
View Curriculum
  • Mac or PC
  • Text editor
  • Free PHP Development Environment

eCommerce... Discussion Boards... Online Communities... even Online Games...

They all have one thing in common: They require users to login and create accounts.

Understanding how to correctly create a login script is an important skill for any web developer. In this compact and crisp course, Alex Bowers takes you through the basics for creating a user management system in PHP. You'll learn how to properly set up the database, use encryption, deal with errors and more.

You can use this course as a template for your own user management system. In two hours, you'll learn everything you need to know to create a user logins, secure them and integrate the user login system in to just about any type of web site.

Who is the target audience?
  • Web Developers
  • Web Designers
  • Students and Teachers in Web Design and Development
  • Application Programmers
  • Anyone who wants to add User Registration Features to an Application
Compare to Other PHP Courses
Curriculum For This Course
21 Lectures
Getting Started
4 Lectures 12:47

In this video, Alex Bowers explains what will be taught in this course. The course will cover creating login and registration systems, whirpool encryption, account activation and error checking.

Preview 00:47

Alex shows you how to set up a MySQL user database on phpMyAdmin and the parameters to set for different fields.

Preview 05:25

In which Alex gives you a code to a basic login page and gives you a walkthrough of its elements

Preview 02:07

Alex demonstrates the creation of a salt to be used in the whirpool encryption.

Preview 04:28
10 Lectures 01:14:55

Alex displays the basic use of hash_hmac function used to create a secure password to be stored in the user database. The process forms a string of 128 random characters formed with the input of the salt and the password input by the user.

Setting up the Hash Function

This video explains how to securely obtain the data with the post function and how to connect this data to the database.

Obtaining the Data from the Form

This video provides explanations of secure database insertions includes the use of trims and MySQL real escape strings.

Securing Data Obtained

Procedures are taught for checking that the data follows the ranges and limits put in place for better security and use of memory.

Checking the Data Submitted

Max explains how to notify the user of errors in the data they provided and dynamically display the information.

Error Reporting

This video provides a walkthough of how to check if the username or email already exist in the database.

Checking Against a Database

In this video, Alex goes through setting some parameters for your user's input

Inserting into a Database

Alex shows you how to store Flash Data, which is data that is stored for one page redirect or refresh.

Flash Session Data

In this video, the activation process is shown through the use of an activation table in the database and the formation of activation codes.

Setup Activation Database

Handling Activation
6 Lectures 34:48

Alex provides a walkthrough for setting up login.php, which includes minor changes in data fetching and error checking.

Check if the User is Already Logged In

This video provides instructions for using a sessions table to manage if a user is logged in and gives additional session data for a secure system.

Create Session

Alex shows the implimentation of the user activation and checking for the user's activation status before logging in.

Check is User is Activated

Alex instructs how to add a function that checks if the user is logged in based on user-stored session data.

Flash Data Session

Alex instructs how to add a function that checks if the user is logged in based on user-stored session data.

Error Reporting

Alex explains the functionality of the remember me button and the use of a cookies in checking if the user is logged in.

Remember Me
Bonus Lecture
1 Lecture 00:31

Here's some bonus material to help you continue learning. 

About the Instructor
LearnToProgram, Inc.
4.3 Average rating
4,574 Reviews
143,725 Students
46 Courses
Learn Web, Mobile and Game Development

LearnToProgram Media is a leading publisher of web, mobile, and game development courses that are used by over 500,000 people in 65 countries. LearnToProgram's valuable network of technical resources includes content on YouTube, iTunes, and Roku, as well as books, free tutorials, and online courses.

With a mission of “teaching the world to code" LearnToProgram instructors are teachers first and technical experts second. Their primary skill is relating complex technical information to nontechnical people learning web, mobile and game development. The entirely online, self-paced sales model allows students to learn at their own pace.

With over 40 courses on the market, LearnToProgram offers students flexible programs in web development, mobile application development and game development. Currently the company's most popular online courses include Become a Certified Web Developer and 10 Apps in 10 Weeks.

The company is based outside of Hartford, Connecticut.

Alex Bowers
4.0 Average rating
261 Reviews
42,022 Students
3 Courses
A Software Engineer from Manchester, UK

Alex Bowers started his programming career learning PHP and MySQL for a small project that he wanted to complete. Upon completion of the project, Alex was hooked, and looking to expand his knowledge of programming.

Since then, in his pursuit for knowledge, Alex started teaching others. He started teaching in 2009 on YouTube, amassing over 2,000 subscribers. Since then, he has moved on to teach Python, jQuery, Javascript, HTML, CSS, PHP and MySQL. Alex's primary expertise resides in Web Development, however he has also played his hand at Android and iOS development.

Since Alex began teaching, he has been an active member of the developer community, contributing to Open Source projects and administrating a forum at PHPacademy.

The goal for Alex is simple. To create the best content available for an affordable price, to enable thousands of others to learn what he has learnt, and to expand his own knowledge in the process. To date, Alex is certainly on track, having taught over 100,000 people on Udemy, and many more elsewhere.