WA server validations: check if more than 15 days are passed from inserted date
Hi all,
I have a form with a date field where the user picks up a date.
I need to check if more than 15 days are passed from this date.
But I cannot find the right syntax in the WA server valkidation behaviour.
This is the server variable:
((isset($_POST["data_scontrino_reg"]))?date('Y-m-d',strtotime(str_replace("/","-",$_POST["data_scontrino_reg"]))):"")
and this is the MAX Date I specified in the related dialog box (using the yyyy-mm-dd setting):
<?php echo (date($_POST["data_scontrino_reg"],strtotime('+15 day'))); ?>
But it doesn't seem to work.
What am I doing wrong?
TIA
tony