refill form options
Posted: Tue Oct 11, 2005 10:04 am
I have an order form setup with input fields, radio buttons, checkboxes, and comboboxes. My form also contains a 'submit order' button.
When the user clicks 'submit order' my form posts all variables back to the php file and checks for errors (incomplete fields, etc.). If there is an error I want the user selections to stay on the form so they do not have to enter ithe same nformation again. I know how to fill the text fields in with the posted variables, but how do I handle checkboxes, radio buttons, combo boxes, etc.?
Thanks!
When the user clicks 'submit order' my form posts all variables back to the php file and checks for errors (incomplete fields, etc.). If there is an error I want the user selections to stay on the form so they do not have to enter ithe same nformation again. I know how to fill the text fields in with the posted variables, but how do I handle checkboxes, radio buttons, combo boxes, etc.?
Code: Select all
<input type="text" name="name" value="<?php echo $name ?>" size="20">