Help with validation rules

Posted by George Garman on Stack Overflow See other posts from Stack Overflow or by George Garman
Published on 2010-03-20T21:47:37Z Indexed on 2010/03/20 21:51 UTC
Read the original article Hit count: 172

Filed under:

I am trying to figure out how to validate a section of a form using php. If at least one of value 1-5 is checked, then at least one of value A-E must be checked. Value's A-E cannot be allowed without at least one of 1-5 being checked. Multiple values in each section can be selected, as long as there is at least one value in each section checked.

I have tried individual IF statements and arrays without success.

Does anyone have any suggestions or examples? I am missing something and I am certain it is pretty obvious, right in my face.

© Stack Overflow or respective owner

Related posts about php