Chapter 11. Processing HTML Forms
The reason that PHP came into existence was to provide a simple way of processing user-submitted data in HTML forms. In this lesson you will learn how data entered in each type of form input is made available in a PHP script.
Submitting a Form to PHP
In case you are not familiar with HTML forms at all, let's begin by looking over what is involved in creating a web page that can collect information from a user and submit it to a web script.
The <FORM>
Tag
The HTML <FORM>
tag indicates an area of a web page that, when it contains text-entry fields or other form input elements, submits the values entered by a user to a particular URL.
The ACTION
attribute in a <FORM>
tag indicates the location of the script that the values ...
Get Sams Teach Yourself PHP in 10 Minutes now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.