Foundations of PHP Tutorial
summary
Step-by-step primer that actually builds a working pizza order form (text fields, radio sizes, checkbox toppings) and ends with a printable receipt; code is shown live and posted for download but explicitly marked not secure for production. Covers arrays, loops, sorting, string handling, form validation, and escaping plus session vs cookie storage (including serialize for cookies). Demonstrates database access with mysqli and PDO and shows using prepared statements to avoid injection.
AI-written summary · about
chapters (33)
- 0:00Start
- 5:29Getting Started
- 6:50Opening PHP tag
- 8:40Quoting Strings
- 13:19Closing PHP tag - Optional
- 14:37Echo'ing and HTML
- 15:57Making Comments
- 17:11Good Coding Practices
- 19:58Starting the Form
- 21:14Radio Buttons
- 21:32Input Field
- 23:28Two Types of Arrays
- 25:05Creating Arrays
- 27:12Quoting Arrays
- 28:42Nested Arrays
- 30:27Displaying Arrays
- 31:30while Loop
- 33:25do Loop
- 37:21Associative foreach Loop
- 38:03Displaying the Pizza Choices
- 38:21Reordering the Toppings
- 39:37Sorting Naturally
- 40:52Sorting with Keys
- 41:33Sorting Keys
- 42:41Comparison Operators Checks if the value of the two is the
- 44:53Logical Operators
- 47:51if-elseif-else
- 49:22Loop Uh-oh
- 49:54Corrected Loop
- 50:25Corrected Decision Code
- 51:08Validation
- 57:22Basic Security
- 58:39Common Attacks
related talks
12m10 Awesome things that most people won't notice in PHP
51mKeynote: Coding and Dreaming with PHP for over 20 years
02h 24mPractical design patterns in PHP (Part 1)
44mModern PHP Standards and Community
36mAn Introduction to OOP, Design Patterns, and TDD
42mFun with PHP
35mPHP is evil (Defensive programming)
31mPHP as you've (probably) never seen it before
