zombie1234 Posted November 8, 2010 Share Posted November 8, 2010 How do you turn off a php form after a set number of submissions? My form is not hooked up to a mysql database. Theoretically I think I would need to set something up that increments a number with each successful form submission. Then when the form hits a certain limit number like 300 it shuts off or hides the div that contains the form. Has anyone done something like this before? Any help or even just pointing me in the right direction is greately appreciated! Quote Link to comment Share on other sites More sharing options...
OldWest Posted November 8, 2010 Share Posted November 8, 2010 I think you're on the right track. I would have a value as you suggested incremented in a table, and when that number was equal to the limit, a script could be included that was a formless page.. Pretty simple I think. A simple if else call to the database incremented value.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.