Chapter 4. Working with Forms in PHP
IN THIS CHAPTER
When I first started getting into PHP development around 1997, what kept me working with PHP (besides its database access) was its capability to work with forms. Up until that point, all the work I had been doing with CGIs (common gateway interfaces) had been done using pure C with a great deal of unnecessary hassle. As you'll learn in this chapter, as I did all those years ago, using PHP to access data and submit it to the Web server via HTML forms can be done quickly and easily.
In general, I tend to assume that if you are a PHP developer, you must already know HTML like the back of your hand. However, I still find myself jumping on the Web or looking in one of my handy HTML books from time to time, trying to remember the name of an HTML tag or attribute. Thus, this chapter will start off with a brief run through of all the tags and attributes related to HTML forms and their use. Unless you feel an overwhelming desire to brush up on HTML forms, this section can be safely ignored. Immediately following the discussion on HTML forms, I'll get into the PHP-related materials.