Buying for a Team? Gift This Course
Wishlisted Wishlist

Please confirm that you want to add PHP: Complete Login and Registration System with PHP & MYSQL to your Wishlist.

Add to Wishlist

PHP: Complete Login and Registration System with PHP & MYSQL

Build a Complete & Secure PHP Login and Registration System with PHP and MySQL - Email Activation and lots more
4.5 (107 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.
1,215 students enrolled
Last updated 2/2017
$10 $200 95% off
2 days left at this price!
30-Day Money-Back Guarantee
  • 6 hours on-demand video
  • 3 Articles
  • 5 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Have a coupon?
What Will I Learn?
Code a registration form with PHP
Code a secured Login Form with PHP
Create and manipulate database content with PHP
System Security and in-depth Validation
Automatically Logoff Inactive Users
Send Account Activation Link by Email
Protecting Against CSRF Attack with Unique Token Generation
Password Recovery
Keep user Logged In (Remember Me)
Code Refactoring
Learn workflow
Write clean and reusable code
Prompt support and value for your money
View Curriculum
  • Text Editor
  • Understand Basic HTML
  • Already Setup PHP Development Environment running PHP 5.5 or higher, with little understanding of PHP (e.g. you should know what is a variable, an array just basic knowledge)



LAST UPDATED 30 June 2016

PHP Login and Registration system step by step -> One of the skill-set that is a must have for any PHP web developer is the ability to code a secure registration and login system. This course is designed to equip you with the fundamental skills needed to create a registration and login system using PHP and MYSQL Database.

Additional resources, quizzes, and assignments will be given throughout this step by step PHP Login and Registration system course, to continually test your knowledge.

You will not just learn how to write a login and registration script but how to build and secure a PHP web application piece by piece.

Some Main Features:

1. Account activation by email, using PHPMailer 

2. PHP Remember me functionality

3. Secured Password hashing with PHP hash algorithm

4. PHP Password Reset / recovery by email system

5. Protecting Against CSRF Attack with Unique secured PHP Token Generation

6. Custom Functions in PHP (A lot)

7. Change Password

8. Deactivate Account

9. PHP Automate Task with Cron Job

10. Constantly update mostly based on genuine request from students 

After completing this step by step PHP Login and Registration system course, you would have gained some useful and practical skills that will help you in your goal to become a web developer or give you an edge in your current job.

Timely Support !

If you ever encounter any problem why taking this course, don't worry I am always here to help and guide you through.

Who is the target audience?
  • This course is for anyone interested in understanding how user authentication works in PHP
  • Want to enhance your PHP skill set as a web developer
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 40 Lectures Collapse All 40 Lectures 06:00:27
Introduction to the Course
1 Lecture 07:01

I'll go over the broad topics we'll cover in the course, as well as how the finish product of the authentication system that we will develop in the course. I'll also covered what is required to take this course, target audience and the benefits that will be derived from taking this course.

Preview 07:01
Database Setup
3 Lectures 14:14

In this lectures we'll go over creating a database and the table for storing user information and also create the project files.

Database Setup and Directory Structure

Test your knowledge of PDO

Database Connection Quiz
4 questions

In this lecture we'll code our database connection script and test our connection

Database Connection Script with PDO

Test students understanding of the concepts discussed in this section

Practice Activity
1 page
Building a Registration and Login System
8 Lectures 01:22:55

In this lectures we'll design the markup for registration and login form, index and logout page.

Preview 07:38

In this lecture we'll code the registration form and create demo user accounts
Registering Users

In this lecture we'll learn how to validate our registration form

Form Validation - Part 1

In this lecture we'll learn how to refactor our validation code and improve the functionalities

Form Validation - Part 2

In this lecture we'll code the login form and signin users
Signing In

Creating a simple contact form to collect username, email address and message, this activity will help reinforce the skills learnt in this section such as validating HTML form, connecting and adding records to the database

Practice Activity
1 page

In this lecture you will learn how to add password reset functionality to the auth system while in option 2 (Lecture 29) you will learn how to send password reset link to users email address and program the recovery script.

Password Reset - Option 1

In this lecture you will learn how to use PHP Custom Functions to make code more efficient and clean.

Using PHP Custom Functions for Code Refactoring
User Interface Design - Bootstrap
5 Lectures 41:18
Lets take a break from coding and spend some time improving the user interface of this system.

In this lecture we'll pull in Bootstrap files and set up things

Enhancing the User Interface - Basic Template

Enhancing Login, Signup and Reset Password Forms

Preview 09:58

Enhancing the Menu and Messaging
Enhancing the User Interface - Menu and Messaging

Learn how to  Automatically Activate current page Menu.
Enhancing the User Interface - Activating Menu Items Automatically

Have you tried Sweet Alert? You will love it.
Enhancing the User Interface - Elegant Messaging With Sweet Alert
Adding More Functionalities
2 Lectures 24:06

Lets add the ability to remember logged in users when they choose to

Remember Me (Keep User Logged in)

In this lecture you will learn how to guard any PHP system and logout users automatically after a predefined period of inactivity.

Enhance System Security and Logout Inactive Users Automatically
5 Lectures 44:16

Students will learn how to display registered users information from the database

View Profile

Students will learn how to allow registered users update their record in the database using HTML form

Update Profile

In this lecture you will learn how to add and display a default profile picture for registered users

Display Default Profile Picture for Users

In this lecture you will learn how to ensure that user upload only specific file type
Limit File Upload to be only Valid Image

In this lecture you will learn how write a function that allows users to add a picture to their profile and moves the picture to a location that we define.

Allow Users to Upload Profile Picture - Option 1

This quiz will test your understating of PHP Super Global Variables

Super Global Variables
4 questions
Account Activation
4 Lectures 26:32

In this lecture you will learn how to use PHPMailer class and Mandrill API for sending Email from localhost using WAMP Server, in the next lecture you will learn to how to prepare and send activation link to user email address.

P.S: As at the time of recording Mandrill API was still free, consider using the GMAIL option (See the PDF file for instruction).

Setup PHPMailer and Mandrill API on localhost (WAMPSERVER)

Setup PHPMailer to Send Mail from localhost with XAMPP Server and GMAIL Option

In this lecture you will learn how to prepare and send account activation link to users as they register, you will also learn to change the database structure to accommodate changes.

Prepare and Send Activation Link to registered User Email Address

In this lecture you will learn how to program account activation script and also update the login script to allow access to only those users that have activated their account.

Program Activation Script and Update Login Script
Wrapping up - More From ICT Design HUB
12 Lectures 01:58:12

In this lecture you will learn how to send password reset link to users email address and code the password recovery script.

Password Reset - Option 2 (Send Password Reset Link to Email Address)

Invalid Username Bug Fix (Highlighted by a Student.

Invalid Username Bug Fix (Highlighted by a Student)

In this lecture you will learn about Cross Site Request Forgery (CSRF) Attack and how to secure your PHP web app against such attack.

Protecting Against CSRF Attack

In this lecture you will learn how to add change password functionality to the system so that registered members can change their login password.

Change Account Password

In this lecture you will learn how to program the functionality to allowregistered users deactivate their account and preserve the account information for 14 days (Facebook style).

Deactivate Account (Facebook Style)

In this lecture you will learn how to code the functionality to Auto Activate a users account if the user attempts to login within 14 days after deactivating their Account.

Update Login Script to Auto Login Users if they Attempts to Login Within 14 days

In this lecture you will learn how to delete the account and related properties of a user who has deactivated their account and has not logged in again after 14 days.

Permanently Delete Deactivated Account after 14 days

In this lecture you will learn to code the functionality that will auto delete accounts that has not been activated 3 days after registration, in order to keep the system clean.

Auto Delete non-activated Accounts 3 days After Signup

In this lecture you will learn how to upload a system developed locally to a remote server so that it can be accessible over the internet.

Uploading the system Online (www)

In this lecture you will learn how to automate task using Cron Jobs. We create a PHP cron job task that will run once daily calling our script that will delete all non-activate account 3 days after registration and accounts that has deactivated and the user did not logged in after 14 days. 

This is a safe and easy way to keep our database clean and free from inactivate accounts that can create a loophole in our system.

Automating Task with Cron Job

The article will show you how to download the source code and stay up-to-date with updates and bug fixes automatically.

Downloading the Source Code

Bonus Lecture - Discounts
About the Instructor
4.4 Average rating
152 Reviews
1,900 Students
2 Courses
Fullstack Developer at Visual Math Interactive Sdn. Bhd

Terry is a professional Computer Scientist, thoroughly skilled and experienced in Information Technology, Software Development and Web Programming.

He ventured into Software Programming and Database Administration in 2007. Terry holds an undergraduate degree in Software Engineering from University of East London, and is also a certified Oracle Database Professional (OCP).

Having a passion for teaching, he seizes every opportunity that he finds to impact into others. In 2008, he facilitated high-end trainings in Oracle Database, Linux Operating System, Oracle Financial 11i, and Web Design at KarRox and 2010 at NIIT.

He is the founder of Terdia Technology Solutions, an Information Technology Company, which provides integrated solutions that leverage Information Technology and knowledge of business processes.

Report Abuse