Skip to main content

Working with HTML Forms

  • Chapter
Beginning PHP and MySQL

Abstract

You can toss around technical terms such as relational database, web services, session handling, and LDAP, but when it comes down to it, you started learning PHP because you wanted to build cool, interactive web sites. After all, one of the web’s most alluring aspects is that it’s two-way media; the web not only enables you to publish information but also offers an effective means for obtaining input from peers, clients, and friends. This chapter introduces one of the most common ways in which you can use PHP to interact with the user: web forms. In total, I’ll show you how to use PHP and web forms to carry out the following tasks:

  • Pass data from a form to a PHP script

  • Validate form data

  • Work with multivalued form components

  • Take advantage of PEAR: the HTML_QuickForm2 package

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2010 W. Jason Gilmore

About this chapter

Cite this chapter

(2010). Working with HTML Forms. In: Beginning PHP and MySQL. Apress. https://doi.org/10.1007/978-1-4302-3115-8_13

Download citation

Publish with us

Policies and ethics