Spudhead
09-11-2002, 05:06 PM
Hi,
It's 5pm and I'm having difficulty thinking in straight lines.
I've got 6 select boxes:
startDay
startMonth
startYear
endDay
endMonth
endYear
on a form, amongst other bits. Their value can be either "-" or a number. Default is "-".
Problem is simply validating this: a user should allowed to complete either none of them, or all six. Two is no good. Three is right out. Sorry, sudden Monty Python attack.
Could someone demonstrate how, using a combination of loops, "if" statements and... actually, whatever you want... this might be achieved?
Ta.
It's 5pm and I'm having difficulty thinking in straight lines.
I've got 6 select boxes:
startDay
startMonth
startYear
endDay
endMonth
endYear
on a form, amongst other bits. Their value can be either "-" or a number. Default is "-".
Problem is simply validating this: a user should allowed to complete either none of them, or all six. Two is no good. Three is right out. Sorry, sudden Monty Python attack.
Could someone demonstrate how, using a combination of loops, "if" statements and... actually, whatever you want... this might be achieved?
Ta.