Greetings,
I am new to PHP and I am trying to write a form validation script for my company. The form to be validated is an application for employment, many different fields of all types.
When submitted, the form is validated by an external PHP script. The script returns errors on the screen and prints out the information submitted by the user underneath. This part is no problem, everything works fine.
The major headache comes into play when the user must return to the form and enter any information left out when they first submitted (ie., missing fields reported by the validation script). I have been successful in maintaining the information entered into text boxes and text areas using the #value="$_POST['field_name']"#, but the radio buttons, check boxes, and drop-down menus reset every time the form is displayed. So, the user then needs to recheck every field or else they will encounter an error (fields not checked/selected).
I have posted under the Newbie board and have been searching Google and other forums for over a week now. I MUST complete the project, unfortunately my client does not understand what is involved with such a large validation script.
So, in short: Validation script works fine. What I am trying to accomplish: Maintaining checked boxes and selected radio buttons when the user hits the Back button or clicks a link to return to the form.
Seems like a simple enough problem, but I cannot find a solution to save my life. PLEASE HELP
Thanks....
Ben