PHP Tizag Tutorial-34 PDF
PHP Tizag Tutorial-34 PDF
php Code:
You ordered 6 brushes.
Thank you for ordering from Tizag Art Supplies!
A lot of things were going on in this example. Let us step through it to be sure you understand what was
going on.
1. We first created an HTML form "order.html" that had two input fields specified, "item" and "quantity".
2. We added two attributes to the form tag to point to "process.php" and set the method to "post".
3. We had "process.php" get the information that was posted by setting new variables equal to the values
in the $_POST associative array.
4. We used the PHP echo function to output the customers order.
Remember, this lesson is only to teach you how to use PHP to get information from HTML forms. The
example on this page should not be used for a real business.