Superglobals

PHP provides the superglobal arrays. They allow you to specify where the input data came from.

To check the value of a GET submitted field, use $_GET[field]. Likewise, $_POST[field] is used to access a field when using the POST method.


Forms | Introduction | Creating a Form | Superglobals | Processing Form Input | Required Fields | Numbers | Drop-Down Menus | Radio Buttons | Checkboxes | Periods in Their Names | Preventing Cross-Site Scripting | Stripping out Slashes | Redirecting the User | Server Information | Determining Browser Type | Sticky Forms
© 2008: Hann So
email: hso@voyager.deanza.edu