Skip to Main Content
PHP and MySQL™ Phrasebook
book

PHP and MySQL™ Phrasebook

by Christian Wenz
October 2012
Intermediate to advanced content levelIntermediate to advanced
360 pages
4h 57m
English
Addison-Wesley Professional
Content preview from PHP and MySQL™ Phrasebook

5. Interacting with Web Forms

HTML forms are one of the key ingredients of any dynamic Web site because they can enable the users of a site to interact with it. Otherwise, Web sites 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 within PHP is very important.

Reading the information in is a very easy task: For form data submitted via GET (that is, in the uniform resource identifier [URI] of the page requested), the data can be found in $_GET[<value of name attribute of form field>]. $_GET[<value of name attribute of form field>] holds the field data if the form has been submitted via 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 7 Programming Blueprints

PHP 7 Programming Blueprints

Jose Palala, Martin Helmich

Publisher Resources

ISBN: 9780133040340Purchase book