basic-web-php-SupportingDocs-formsample.htm / htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <title>Sample Form</title> </head> <body> <form action="formdata.cgi" method="post"> <table cellspacing="20"> <tr><td> <!-- Text boxes --> <p> First Name: <input type="text" name="fname" id="fname" size="20" /><br /> Last Name: <input type="text" name="lname" id="lname" size="20" /> </p> <!-- Text area --> <p> Address:<br /> <textarea name="addr" id="addr" cols="20" rows="4"></textarea> </p> <!-- Password --> <p> Password: <input type="password" name="pwd" id="pwd" size="20" /> </p> </td><td> <!-- Select list --> <p> What product(s) are you<br /> interested in? <br /> <select name="prod[]" id="prod" multiple="multiple" size="4"> <option id="MB">Motherboards</option> <option id="CPU">Processors</option> <option id="Case">Cases</option> <option id="Power">Power Supplies</option> <option id="Mem">Memory</option> <option id="HD">Hard Drives</option> <option id="Periph">Peripherals</option> </select> </p> <!-- Check boxes --> <p> How should we contact you?<br /> <input type="checkbox" name="email" id="email" checked="checked" /> Email<br /> <input type="checkbox" name="postal" id="postal" /> Postal Mail<br /> </p> </td></tr> <tr><td> <!-- Radio buttons --> <p> How soon will you be buying hardware?<br /> <input type="radio" name="buy" id="buyASAP" value="ASAP" />ASAP<br /> <input type="radio" name="buy" id="buyDays" value="10" />Within 10 business days<br /> <input type="radio" name="buy" id="buyMonth" value="30" />Within the month<br /> <input type="radio" name="buy" id="buyNever" value="Never" />Never! </p> </td><td> <!-- Submit and Reset buttons --> <p> <input type="submit" name="submit" id="submit" value="Submit" /> <input type="reset" name="reset" id="reset" /> <!-- Hidden field --> <input type="hidden" name="referredby" id="referredby" value="Google" /> </p> </td></tr> </table> </form> </body> </html>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.