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 9. Adding HTML forms to a Web Page

Display an HTML Form

HTML forms are very important for dynamic Web sites. Users type or select information in the form and submit the form by clicking a button, and the user information is passed to a program that processes it. The program can store the information in a database or use it in conditional statements to deliver individualized Web pages to the user.

To display a form on a Web page, the HTML code is included in the program in an HTML section of the script or echoed in a PHP section. A form has the following general format:

<form action="programname.php" method =
"POST">

   form fields

   submit button

</form>

The form fields can be text fields, check boxes, radio buttons, drop-down lists, or hidden ...

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