3 HTML Forms and PHP

The preceding chapter provides a brief introduction to the topic of variables. Although you’ll often create your own variables, you’ll also commonly use variables in conjunction with HTML forms. Forms are a fundamental unit of today’s Web sites, enabling such features as registration and login systems, search capability, and online shopping. Even the most basic site will find logical reasons to incorporate HTML forms. And with PHP, it’s stunningly simple to receive and handle data generated by them.

With that in mind, this chapter will cover the basics of creating HTML forms and how the form data is accessible in a PHP script. Simultaneously, this chapter will introduce several key concepts of real PHP programming, including ...

Get PHP for the Web: Visual QuickStart Guide, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.