6. creating a search

Thus far in the book we’ve made two aspects of an employee-directory site. First, we created a way to browse employees by department. Then we made it possible to add employees to the database. Let’s put in one last logical feature: the ablity to search for employees by last name.

In keeping with this book’s approach, we’ll start, in this chapter, with the non-Ajax version. These files will work for all users and give us a sense of what the process should entail. To create the search, we only need to put together two files: one HTML form and one PHP script that handles the form. Should be a snap!

what we’ll do

Image First, on pages ...

Get Building a Web Site with Ajax: Visual QuickProject Guide now with O’Reilly online learning.

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