PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.?
Just to add to this (although yiou are setting you vars in the script).
I find that using the $_REQUEST variable works better in situations where you want to pre-submit the form, i.e. a post action to comit, but use a get action to preview before comitting