Skip to Main Content
PHP & MySQL®: Your visual blueprint™ for creating dynamic, database-driven Web sites
book

PHP & MySQL®: Your visual blueprint™ for creating dynamic, database-driven Web sites

by Janet Valade
September 2006
Intermediate to advanced content levelIntermediate to advanced
319 pages
9h 24m
English
Visual
Content preview from PHP & MySQL®: Your visual blueprint™ for creating dynamic, database-driven Web sites

Chapter 10. Processing Data from Forms

Process Information from a Form

The <form> tag specifies, with the action attribute, which script to run when the form is submitted. When the user clicks the submit button, the specified program runs and receives the information from the form. The form data is available in the processing program in built-in PHP arrays. The program can use the array elements in PHP statements. The program can display the form information, use the information in conditional statements, store the information in a database, or use the information in any manner.

The Superglobal Arrays

PHP provides three built-in arrays, called superglobal arrays, that contain the information submitted in a form: $_POST, $_GET, and $_REQUEST. $_POST ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

Larry Ullman

Publisher Resources

ISBN: 9780470048399Purchase book