i have a form and a input where i can place a date in this format m/d/y
<input type="text" name="date_ts" size=8 maxlength=8 value="">
i need to figure out a way of not letting the user input a date that is in the past.
any ideas?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can convert the date to an Unix timestamp (
strtotime()and compare it withtime();(note: will not work with today)