<!-- This "xmp" tag is to prevent Microsoft browsers from interpreting the HTML tags in this "text/plain" document... --> <!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0 transitional//EN"> <html> <head> <meta name="generator" content="HTML Tidy, see www.w3.org"> <title>Walt's Sample Form Example</title> </head> <body bgcolor="#FFFF00"> <form method="POST" action="http://www.topshelftech.com/cgi-bin/p_query.cgi"> <table> <tr> <td>This is an <b>&lt;input type="TEXT"&gt;</b> field called "Name":</td> <td><input type="TEXT" name="Name" value="John Doe" size= "10" maxlength="15"> </td> </tr> <tr> <td>This is an <b>&lt;input type="PASSWORD"&gt;</b> field called "Password":</td> <td><input type="PASSWORD" name="Password" size="8" maxlength="8"></td> </tr> </table> <dl> <dt>These are some <b>&lt;input type="CHECKBOX"&gt;</b> fields called "C1", "C2" and "C3":</dt> <dt>Things you like:</dt> <dd><input type="CHECKBOX" name="C1" checked value="sports"> Sports</dd> <dd><input type="CHECKBOX" name="C2" value="broadway"> Broadway shows</dd> <dd><input type="CHECKBOX" name="C3" value="fishing"> Fishing</dd> <!-- No 'value' attribute submits "on" when checked: --> <dd><input type="CHECKBOX" name="C4"> Reading fiction.</dd> </dl> <dl> <dt>These are grouped <b>&lt;input type="RADIO"&gt;</b> fields called "R1" and "R2":</dt> <dd>Do you like the color green? <input type="RADIO" name= "R1" value="1"> Yes <input type="RADIO" name="R1" value= "0"> No</dd> <dd>Do you like the color red? <input type="RADIO" name= "R2" value="1"> Yes <input type="RADIO" name="R2" value= "0"> No</dd> </dl> <p>This is a <b>&lt;textarea&gt;</b> field called "Whatever"; go ahead... Type whatever you want:<br> <textarea name="Whatever" rows="5" cols="40"> (No limit here...) </textarea></p> <p>This is a <b>&lt;select&gt;</b> field called "Season":<br> What is your favorite season? <select name="Season"> <option value="1"> Winter </option> <option value="2"> Spring </option> <option value="3" selected> Summer </option> <option value="4"> Fall (Autumn) </option> </select></p> <p>This is a <b>&lt;select multiple&gt;</b> field called "Desserts":<br> Which desserts do you enjoy (pick all that apply)?<br> <select name="Desserts" multiple> <option value="SIC"> Strawberry ice cream </option> <option value="CC"> Chocolate cake </option> <option value="AP"> Apple pie </option> <option value="FF"> Fresh fruit in season </option> <option value="SP"> Specialty pastries </option> </select></p> <table> <tr> <td>Below is an <b>&lt;input type="FILE"&gt;</b> field called "filename":</td> </tr> <tr> <th colspan="2"><input type="file" name="filename"></th> </tr> </table> <table border="1"> <tr> <th>&lt;input type="SUBMIT"&gt;</th> <th>&lt;input type="IMAGE"&gt;<br>(Also submits this form.)</th> <th>&lt;input type="RESET"&gt;</th> </tr> <tr> <th><input type="SUBMIT" value="SUBMIT IT!"></th> <th><input type="IMAGE" src="images/Emoticon11.gif"></th> <th><input type="RESET" value="CLEAR IT!"></th> </tr> </table> <input type="HIDDEN" name="Hidden_Field" value="Surprise!"> </form> <a href="http://www.topshelftech.com/p_query.txt">Click here to view a copy of the Perl source code of the program that processes this form</a> </body> </html>