Papapax
06-11-2008, 08:57 AM
Hi,
I have a problem with a date and time validation issue.
On http://www.tapatapa.co.uk/prototype/reservation.html I have a form to request a restaurant booking.
The validation on the time field should see if the the user is requesting a booking for the same day, if it is for the same day and the time for the booking is past 20:00 on the same day a javascript alert should notify the user to call the venue as the request is too close to the closing time.
The day is important as a request for a booking made for a future date gives admin enough time reply to booking (more than 24hrs)
Hopefully it makes sense, any help would be appreciated.
Thanks
Frank
I have a problem with a date and time validation issue.
On http://www.tapatapa.co.uk/prototype/reservation.html I have a form to request a restaurant booking.
The validation on the time field should see if the the user is requesting a booking for the same day, if it is for the same day and the time for the booking is past 20:00 on the same day a javascript alert should notify the user to call the venue as the request is too close to the closing time.
The day is important as a request for a booking made for a future date gives admin enough time reply to booking (more than 24hrs)
Hopefully it makes sense, any help would be appreciated.
Thanks
Frank