I need some advice on how to approach this situation.
I have created a sign-up script for an event. The script limits the amount of entries into the database. When someone visits the page, if the limit has been reached, it displays a message saying all the spots are full.
My problem is, if someone signs-up for the last spot, they can hit the back button and keep signing up since the script won't check to see if the limit has been reached when they do that.
Do you have any suggestions? The following is my code: