HomePHP PHP 101 (part 3) - Chocolate Fudge And Time Machines
PHP 101 (part 3) - Chocolate Fudge And Time Machines
After teaching you the fundamentals of form processing, PHP 101 returns with an explanation of WHILE, FOR and FOREACH loops, those PHP constructs that can save you hours of unnecessary HTML coding. Also included: array variables, the auto-increment operator, and some yummy desserts.
If you've been paying attention, you'll remember that last time, we gave you a quick crash course in PHP's conditional statements and operators; we also showed you how PHP can be used to process the data entered into a Web form. This week, we're going to delve deeper into the topic of form processing by showing you how PHP handles form elements like lists and checkboxes, together with a demonstration of the other type of variable - the array variable.
First, though, we're going to toss you for a loop...