Date/Time Check - Must be 60 minutes after current time
I have a restaurant order system built in Classic ASP. On the order menu there are fields for order pickup time and date:
var rightNow = new Date();
var month = rightNow.getMonth();
var dayt = rightNow.getDate();
var year = rightNow.getFullYear();
var hours = rightNow.getHours();
var minutes = rightNow.getMinutes();
var seconds= rightNow.getSeconds();
Thanks for your reply on this, but I don't see any coding where the current date/time is checked against what is entered in the form fields.
But the problem with this is that the time is taken from the user's browser. So I can change the "time" by altering my computer clock.
You will need to use server-side coding (ASP) to ensure that the requested delivery time is at least 60 minutes after the current time.
Quizmaster: In nature, what invertebrate has a name which literally means "one hundred feet"?
|All times are GMT +1. The time now is 10:27 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.