Page 1 of 1

Stopping someone from clicking a button

Posted: Mon May 30, 2011 9:25 am
by wignall6
I'm in the process of developing a php game and i am using a button, i want to make it so the button can only be pressed every 20mins, how would i go about doing this?

Re: Stopping someone from clicking a button

Posted: Mon May 30, 2011 10:09 am
by jacek
What ever happens when it is pressed, log the time in a database. then when it is pressed check to to see if this time is more than 20 mins ago.