This project is to validate questions in an existing questionnaire which I have built in flash. The questionnaire consists of a series of questions with text fields (6), combo boxes (2) and radio button groups (19) which send completed or chosen responses to a MySQL database via PHP. The questionnaire is broken into pages with 1 to 3 questions per page. This 27 question series is currently in use and operating in a stable manner on the internet in this unvalidated format.
The first requirement is to insure each question is answered. Presently questions can be easily skipped and not answered. I would like a simple message to display requiring the unanswered question(s) to be completed before proceeding. Among the six text fields, four need simple validation that minimum content has been entered. A name or simple phrase. The remaining two require an email address and phone. A check for a valid email format () and valid US phone format (000-000-0000) through validation is needed. One combo box has "Select" as the default selection and the user need to chose a value between 1-25 which are available selections, the second combo box uses one of three values as a default. The nineteen radio button groups have all choices set to false and require selecting one choice only, but a choice must be made for each.
I am open to suggestion whether the validation is done in flash (preferred), Java or PHP. (PHP feedback is currently received when data is properly saved to existing database)
My goal is to get questionnaires that are completely answered and limit junk responses where possible. The email and phone text fields responses are critical as we contact users with the results from this information.