A lot of my time is spent wondering why some forms will work, and some won't. Mostly its a case of uppercase/lowercase errors, Such as "Name" and "name". I wrote this as a 'cheat' and keep it in my 'examples' folder so that I can snippet parts (cut'n'paste) as when I need them in my forms.
By : kaelastreet
<html>
<head> <title>Form Examples by Kaela Street</title> </head> <body>
<form name="form" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post"> Form Examples by Kaela Street<br> Enter some text or numbers: <input name="TextData" type="text" value=""><br>
Select one or more checkboxes: <input name="one" type="checkbox" value="Box one, ">One <input name="two" type="checkbox" value="Box two, ">two <input name="three" type="checkbox" value="Box three, ">three<br>
Select <b>one</b> of the radio buttons: <input name="radio" type="radio" value="Mum" >Mum <input name="radio" type="radio" value="Dad" > Dad <input name="radio" type="radio" value="Kitty Cat" > Kitty Cat <BR>
Replace the text in this box with your own text: <textarea name="boxy" rows=5 cols=20 wrap="off">Example Data </textarea><br>
Now select <b>one</b> of the drop down choices: <select size="1" name="Name"> <option value=""> </option> <option value="value1">Item1</option> <option value="value2">Item2</option> <option value="value3">Item3</option> <option value="value4">Item4</option> </select> <br>
Now select<b> some </b> of the drop down choices: <select name="data[]" size="10" multiple > <option value="London">London</option> <option value="Manchester">Manchester</option> <option value="Glasgow">Glasgow</option> <option value="Winchester">Winchester</option> <option value="Oxford">Oxford</option> </select>
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.