15. PHP and JavaScript Together

To wrap up the book, this chapter will put the ideas covered in the previous 14 chapters to the test by creating a viable, real-world site. I tried to come up with an example that was a practical, good use of JavaScript, without getting too elaborate. I’ll explain the specific example next, and then walk through all of the key parts in the remaining pages.

No new JavaScript will be introduced in this chapter, although you’ll encounter new uses of what you’ve already learned. The example does require server-side technologies, though, for which I’ve used PHP and MySQL. There is not enough space to explain the PHP code in detail, but I will deliberately walk through the more advanced parts.

Identifying the Goal

Get Modern JavaScript: Develop and Design now with O’Reilly online learning.

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