PHP
Interacting with Web FormsPHP - Interacting with Web Forms
Interacting with Web Forms
Sending Form Data Back to the Current Script
Reading Out Form Data
Coping with "Magic Quotes"
Checking Whether a Form Has Been Submitted
Saving Form Data into a Cookie
Prefilling Text Fields and Password Fields
Prefilling Multiline Text Fields
Preselecting Radio Buttons
Preselecting Check Boxes
Preselecting Selection Lists
Preselecting Multiple Selection Lists
Processing Graphical Submit Buttons
Checking Mandatory Fields
Checking Selection Lists
Writing All Form Data into a File
Sending All Form Data Via Email
Getting Information About File Uploads
Moving Uploaded Files to a Safe Location
Sessions and Cookies
HTML forms are one of the key ingredients of any dynamic website because they can enable the users of a site to interact with it. Otherwise, websites are more or less static: They may be driven by a database and, therefore, regularly changing, but they look the same for each and every visitor. HTML forms can change that; therefore, using data from forms from within PHP is very important.