Hmm, this does not work.
here is my validation code:
$WAFV_Errors .= WAValidateDT(((isset($_POST["year"]))?$_POST["year"]:"").'-'.((isset($_POST["month"]))?$_POST["month"]:"").'-'.((isset($_POST["day"]))?$_POST["day"]:"") . "",true,"\b\d{4}-(1[0-2]|0[1-9])-([12]\d|3[0-1]|0[1-9])\b","","".(date("Y-m-d", mktime(0, 0, 0, date("d"), date("m"), date("Y") - 18))) ."",false,".*","","",true,8);
And this is the Server Variable
((isset($_POST["year"]))?$_POST["year"]:"").'-'.((isset($_POST["month"]))?$_POST["month"]:"").'-'.((isset($_POST["day"]))?$_POST["day"]:"")
The Value for Day and Month I did like you said.
<option value="0" <?php if (!(strcmp(0, (ValidatedField("registerstep1_250","day"))))) {echo "selected=\"selected\"";} ?>>Tag</option>
<option value="01" <?php if (!(strcmp("01", (ValidatedField("registerstep1_250","day"))))) {echo "selected=\"selected\"";} ?>>1</option>
<option value="02" <?php if (!(strcmp("02", (ValidatedField("registerstep1_250","day"))))) {echo "selected=\"selected\"";} ?>>2</option>
<option value="03" <?php if (!(strcmp("03", (ValidatedField("registerstep1_250","day"))))) {echo "selected=\"selected\"";} ?>>3</option>
I think its the format, used in the Date/Time validation yyyy-mm-dd
something is wrong.
If I do it with a simple textfield it works, cause the user enters the right format yyyy-mm-dd