Working on an event calendar which lists only dates entered by the client to be viewed on their site. Following code verifies that the client entry from a drop-down is a valid date ( i.e. No FEB 30th ).
If invalid - substitutes current date...
Is it possible to nest Javascript in this code which would produce an alert box, rather than this current-date substitution ?
Thanks in Advance.......
if ( ! checkdate( $MM, 1, $YY ) )
{
$nowArray = getdate();
$MM = $nowArray[mon];
$DD = $nowArray[mday];
$YY = $nowArray[year];
$start = mktime ( 0, 0, 0, $MM, $DD, $YY );
$calendardate = getdate($start);
}