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! Link to comment https://forums.phpfreaks.com/topic/218086-turn-off-form-after-set-number-of-submissions/ 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.. Link to comment https://forums.phpfreaks.com/topic/218086-turn-off-form-after-set-number-of-submissions/#findComment-1131692 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.