Multiple checkbox select and validation

Hey all,

I have a validation/logic question.

I have a form that gives multiple options and checkboxes to select them:

Saturday
Football
Badminton
Rugby

Sunday
Tennis
Golf
Athletics

Now, the issue is that a person can enter multiple events which could be
Football AND Tennis BUT NOT Golf as it would clash with the Tennis!
Badminton AND golf BUT NOT Athletics,

BUT…

some organisers can put Tennis AND golf on at the same day and allow entry to both.

So I need a reliable way for an organiser to be able to specify which sports are allowed within a multiple entry array.
The the javascript that would check for that specific combination!

Cheers
Spike

You could use this for the client: http://jsfiddle.net/8MKxh/1/

For the admin I would just let them check all sports that take place at the same time, store that in the db, and use as the variable sametime in the script above :slight_smile:

oooh me likey!

Like the way of thinking Remon, thanks as always!