Help with validation rules
<p>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.</p>

<p>I have tried individual IF statements and arrays without success.</p>

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

<pre><code> &lt;div class="grid_12 alpha"&gt;
&lt;strong&gt;DISMISSAL&lt;/strong&gt; - This section is to be used for errors which require dismissal by a Judge.
&lt;/div&gt;

&lt;div class="grid_5 alpha"&gt;
&lt;input class="checkbox" type="checkbox" name="dis_checkbox_a" /&gt;A
&amp;nbsp;
&lt;input class="checkbox" type="checkbox" name="dis_checkbox_b" /&gt;B
&amp;nbsp;
&lt;input class="checkbox" type="checkbox" name="dis_checkbox_c" /&gt;C
&amp;nbsp;
&lt;input class="checkbox" type="checkbox" name="dis_checkbox_d" /&gt;D
&amp;nbsp;
&lt;input class="checkbox" type="checkbox" name="dis_checkbox_e" /&gt;E
&lt;/div&gt;

&lt;div class="grid_3"&gt;
&lt;input class="checkbox" type="checkbox" name="dis_checkbox_mon" /&gt;Missing Officers Name
&lt;/div&gt;

&lt;div class="grid_4 omega"&gt;
&lt;input class="checkbox" type="checkbox" name="dis_checkbox_civ_crim_error" /&gt;Criminal/Civil Designation in Error
&lt;/div&gt;

&lt;div class="grid_12 alpha"&gt;
&lt;input class="checkbox" type="checkbox" name="dis_checkbox_improp_code_descr" /&gt;Improper Statute Number AND Description
&lt;/div&gt;

&lt;div class="grid_12 alpha"&gt;
&lt;input class="checkbox" type="checkbox" name="dis_checkbox_other" /&gt;Other
&lt;input id="input" type="text" name="dis_cit_other" size="115" maxlength="110" onkeypress="checkCapsLock( event )" /&gt;
&lt;/div&gt;

&lt;div class="grid_6 alpha"&gt;
Citing Officer:
&lt;input id="input" type="text" name="dis_cit_officer" size="5" maxlength="5" onkeypress="checkCapsLock( event )" /&gt;
(Enter PR# only)
&lt;/div&gt;

&lt;div class="grid_6 omega"&gt;
Supervisor Notified:
&lt;input id="input" type="text" name="dis_supvsr_notified" size="5" maxlength="5" onkeypress="checkCapsLock( event )" /&gt;
(Enter PR# only)
&lt;/div&gt;
</code></pre>
