Question : jquery datepicker sending current date if input empty

hello
can anyone tell me why datepicker submits the current date if the input field is empty? this date field is not a compulsory field and can be used at the users discretion. many thanks.

Answer : jquery datepicker sending current date if input empty

I've never experienced this. Are you sure that the page itself is submitting the current date?

Is your server side PHP? If you use code like: date('Y/m/d', strtotime($_POST['date'])) and $_POST['date'] is blank, I believe strtotime will calculate the current date at the server...
Random Solutions  
 
programming4us programming4us