Prev | Current Page 23 | Next

Larry Ullman

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


The value for the form??™s action should be the name of the PHP
script that will handle this form. Set the method as get. Give
the form a meaningful id value. (See extra bits on page 22.)
The form contains a select menu, listing the departments. The value
of each option is the department number from the database. The name
and id of this form element must be did (short for department ID).
The form needs a submit button, too.
14 browsing employees
EN???
???http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd???>
lang=???en??? lang=???en???>

charset=utf-8??? />
Employees by Department


Department Employees


?>


start a PHP page
The main PHP page handles the form submission. It should also be a valid
HTML document, so start with those tags. (See extra bits on page 22.)
All of the page??™s functionality will go in between the PHP tags.
This fi le must be saved as dept_results.


Pages:
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35