HTML Form Handling in PHP
Learn how to use PHP to handle HTML forms.
StartKey Concepts
Review core concepts you need to learn to master this subject
Dynamic Webpages using PHP
Embedding PHP Code
$_REQUEST
Superglobal Variable
Action Form Attribute
$_POST
Superglobal Variable
$_GET
Superglobal Variable
echo
Shorthand Syntax
HTML Form Name Attribute
Dynamic Webpages using PHP
Dynamic Webpages using PHP
PHP is a server scripting language. This server side code can be used to fill out HTML templates in order to create a complete HTML document for a visitor. This finished document is called a dynamic webpage.
Dynamic PHP webpages can deliver a custom set of assets to each visitor, unlike static pages which deliver the same set of assets to everyone.
- 1PHP can be used in many ways. It can be used to write standalone programs that run in our terminal: echo “Hello, World!”; When run, the code above will output the following to the terminal: Hell…
- 2Let’s talk about the difference between a front-end language and a back-end language. HTML is a front-end language, but what exactly does that mean? When navigating to a website from our web brows…
- 3The back-ends of websites will differ depending on the needs of the site. Typically, they’ll have at least the following components: 1. A web server: a web server is a computer or program which l…
- 4We can embed PHP scripts within HTML documents with the opening tag . The PHP processor will read the entire file, evaluate any PHP, translate it into HTML, and pass it off to the web server so i…
- 5We can also incorporate more complex PHP within our scripts. Your lucky number is ${lucky_number} “; ?> The code above will be translated into HTML with a header that reads: Your lucky number is…
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory