PHP Tutorial: PHP Login Script Creation

Create Membership Based Communities, Discussion Boards, eCommerce Sites and more after Learning User Registration
4.4 (21 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.
320 students enrolled
$19
$20
5% off
Take This Course
  • Lectures 21
  • Length 2 hours
  • Skill Level Intermediate Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 11/2013 English

Course Description

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.

What are the requirements?

  • Mac or PC
  • Text editor
  • Free PHP Development Environment

What am I going to get from this course?

  • 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

What 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

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Getting Started
00: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.

05:25

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

02:07

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

04:28

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

Section 2: Register
03:08

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.

08:46

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

02:23

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

03:59

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

12:11

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

05:31

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

15:43

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

09:07

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

03:05

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

Handling Activation
11:02
Section 3: Login
03:43

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

03:57

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.

03:02

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

16:51

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

02:53

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

04:22

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

Section 4: Bonus Lecture
Article

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

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

LearnToProgram, Inc., 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.

Instructor Biography

Alex Bowers, 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.

Ready to start learning?
Take This Course