Hi,
I can carry this task out, but the line of code is a bit lengthy. Whats a better way to write this? Note that the variable b, is a value inside a select box from a form post. so I would like to make sure $b has to be a digit and the digit has to be from 1 to 5.
if ($b == 1 || $b == 2 || $b == 3 || $b == 4 || $b == 5) {
print "\$b has to be a number and is either 1, 2, 3, 4, or 5.";
}