Hello folks
My mind has gone blank, it is such a long time since I designed my php form handler I have forgotten how to write this bit of code.
I have four check boxes, I want to test that at least one has been ticked.
If none has been ticked the handler then puts up an error message.
I incorrectly thought this would do it
//Check that at least one box has been ticked
if ((!$w98me2000) || (!$xp) || (!$vista) || (!$w7)) {
header( "Location: $boxerrorurl" );
exit ; }
I think its my use of the OR that is wrong.
Please would you show me how to achieve this.