Jump to content

turn off form after set number of submissions


zombie1234

Recommended Posts

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!

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..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.