Prev | Current Page 79 | Next

Larry Ullman

"Building a Web Site with Ajax: Visual QuickProject Guide"


??¦

Enter the first letter or two of an employee??™s last
name and click ???GO??™ to find matching employees.


2 For non-Ajax-enabled browsers, the form will be submitted to
search_results.php, to be written next.
3 The form uses the GET method, like dept_form.html.
id=???search_form???>

size=???5??? maxlength=???30??? />





creating a search 91
start a PHP page
The fi rst PHP page handles the non-Ajax form submission. It should also be a
valid HTML document, so start with those tags.
All of the page??™s functionality will
go in between the PHP tags.
This fi le must be saved as search_results.php and
placed in the same directory as search_form.html.
EN???
???http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd???>
lang=???en??? lang=???en???>

charset=utf-8??? />
Search for Employees by Name