Chapter 20. INTEGRATION WITH HTML

Topics in This Chapter

Sprinkling PHP within an HTML Document

Using the PHP to Output All HTML

Separating HTML from PHP

Creating <SELECT> Fields

Passing Arrays in Forms

By this time, you have learned the basics of PHP. You have a reference for the functions. And you've been introduced to some fundamental problems of programming. But all the examples I've shown have been pieces, snippets for the sake of illustration. This chapter will discuss how to integrate PHP into a Web site. It will help you decide whether to build a site completely with PHP, to sprinkle PHP throughout the site, or to simply create a few key PHP-driven pages. I'll also discuss issues involved in using PHP to generate HTML.

Get Core PHP Programming: Using PHP to Build Dynamic Web Sites 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.