We have a form of 6 variables... each with a number.
If the user enters a value of a Zero.... then none of the other feilds should contain values..... how do I check to see if they messed up?
Say
Field 1 = 1123
Field 2 = 2234
Field 3 = 0
Field 4 = 1122
Field 5 = 0
Field 6 = 0
How do I report an error that they have a null in field 3 and had valid data after.......
It is ok if the have trailing 0's as long as a following field does not have a value.. just zeros.
Once a zero is found in the list... all other fields should be zero only.
Does this make sense?
Any ideas?
If the user enters a value of a Zero.... then none of the other feilds should contain values..... how do I check to see if they messed up?
Say
Field 1 = 1123
Field 2 = 2234
Field 3 = 0
Field 4 = 1122
Field 5 = 0
Field 6 = 0
How do I report an error that they have a null in field 3 and had valid data after.......
It is ok if the have trailing 0's as long as a following field does not have a value.. just zeros.
Once a zero is found in the list... all other fields should be zero only.
Does this make sense?
Any ideas?