Stopping someone from clicking a button

Ask about a PHP problem here.
Post Reply
wignall6
Posts: 38
Joined: Thu May 05, 2011 8:05 pm

Stopping someone from clicking a button

Post 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?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Stopping someone from clicking a button

Post 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.
Image
Post Reply