/*
A bit of fancy footwork to get the browser's inside dimensions in
pixels. Should work on both NS4+ and IE4+. If it doesn't we default
it to something sane. The dimensions are returned to the server via
a Javascript cookie so as to not muck up our nice clean URL. The
function is called if we don't have the dimensions already, or on a
resize event to fetch the new window dimensions.
*/?>
PDO uses prepared statements, forward-only cursors (aka unbuffered queries), and parameter markers to support optimal cross-database data access.
PHP provides direct access to input from CGI forms.
We will use this combination of features to build a simple search form for our menu system.
1. Create an HTML form named search.html in your Web server document directory:
Search for a menu item
Search for a menu item
<html> <head><title>Search for a menu item</title></head> <body> <h1>Search for a menu item</h1> <form action='search.php' method='POST'> <label for='sinput'>Please enter the search string:</label> <input type='text' name='search' id='sinput' size='30'/><br /> <input type='submit'/><input type='reset'/> </form>