Dissecting the Login Process
In this lab, you will learn how a web browser via an HTML form sends an HTTP POST method message to relay data from the HTML form to the backend server. You will also learn how the data gets stored into variables on the server-side, and how the PHP code uses the values within them to authenticate users through a query to the database and response back to the browser.
outcomes:
In this lab, you will learn to:
- Understand how HTTP post works in PHP.
- Query the database from PHP.
Videos:
Before you start this lab, review these videos.
Overview
In this lab, we discuss how the login system works by dissecting into parts: the HTTP POST method and the PHP SQL query process.

Dissecting the Login Process
Key terms and descriptions
HTTP
HTTP is a protocol that defines how data should be formatted and transmitted over the Internet.
PHP
PHP is a server-side scripting language designed to create dynamic websites. It is one of the most popular languages in the world, especially for web development.
SELECT statement
An SQL statement that queries data from a table in the database.