9
9
$EndDateunset = 'style="background-color: yellow;" ';
15
15
if(! preg_match('/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/', $_POST[StartDate])){
17
17
$StartDateunset = 'style="background-color: yellow;" ';
22
22
//end of check if dates are valid
23
23
//TODO: need more teisting.
24
24
if($_POST[StartDate] > $_POST[EndDate]){
29
29
//TODO: Add check for if dates are in DB.