I have a user submitting a date in a 3 part form:
$field1 = $mm
$field2 = $dd
$field3 = $yy
Is there anyway to ensure that mm dd and yy are 2 numeric characters using php? I can use javascript to ensure they are numbers, but I also need to make sure the user enters no less than 2 digits (maxlength is controlled by the input tag, so they can't go beyond 2 characters, but they can screw it up and only put in 1 character). Can php accomplish this?