I've been struggling lately to conceptualize how to validate a survey form that I'm dynamically building prior to submitting values into a database. This form has a combination questions with radio buttons and drop down values.
I'd simply like to ensure that all of the questions (again, dynamically generated) have at least one selction prior to submitting to the db.
Based on my research, it seems that a lot of people are of the opinion that this should be performed utilizing java; however, if possible i'd like to stick with using php validate.
Through my research, there also appears to be several examples out there utilizing array_key_exists() and array_intersect() fucntion, but I can't seem to grasp how this should be executed while building a dynamic web form.
Any guidance and/or direction you can provide would be greatly appreciated.
Thanks.