Chapter 3. HTML Forms and PHP

In the previous chapter, you had a brief introduction to variables. Although you’ll often create your own variables, you’ll also commonly use variables in conjunction with HTML forms. Forms, as you’ve certainly seen, 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 transmitted to your PHP script. Simultaneously, this chapter will introduce several key concepts of ...

Get PHP for the World Wide Web, Second Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.