I have 3 text boxes - email, phone and mobile preferred method of response checkboxes. So if the user checks the box for wanting to be emailed back they must have entered an email address or if they wanting phoning they must have entered a phone number etc and they cannot submit the form until they have done so.
I don't really have a problem validating forms it's just how to compare the
boxes if the other is checked.
input name="email" type="text" class="form_blocks" id="email" size="25" max
length="30" />
input name="phone" type="text" class="form_blocks" id="phone" size="25" max
length="30" />
input name="mobile" type="text" class="form_blocks" id="mobile" size="25" ma
xlength="30" />
input name="preferred" type="checkbox" value="Phone" />
input name="preferred" type="checkbox" value="Mobile" />
input name="preferred" type="checkbox" value="Email" />
Any help on the above would really be appreciated.