Chapter 2

PHP and HTML Forms

In This Chapter

arrow Understanding the relationship between HTML and PHP

arrow Using the date( ) function

arrow Formatting date and time information

arrow Creating HTML forms designed to work with PHP

arrow Choosing between get and post data transmission

arrow Retrieving data from your HTML forms

arrow Working with HTML form elements

PHP is almost never used on its own. PHP is usually used in tight conjunction with HTML. Many languages have features for creating input forms and user interfaces, but with PHP, the entire user experience is based on HTML. The user never really sees any PHP. Most of the input to PHP programs comes from HTML forms, and the output of a PHP program is an HTML page.

In this chapter, you discover how to integrate PHP and HTML. You explore how PHP code is embedded into ...

Get HTML5 and CSS3 All-in-One For Dummies, 3rd Edition 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.