Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Limiting the number of form submissions

Featured Replies

Hi,

 

Does anybody know how i could limit the number of form submissions on my website. Im going to be having a signup page that saves the form data to a csv file, however i want to limit the number of people that can sign up to 40.

 

Any ideas?

 

Thanks.

On the submit of each submission, either add a number to a database or another txt file.

 

Then on the form have a lookup to make sure 40 isn't hit.

  • Author
On the submit of each submission, either add a number to a database or another txt file.

 

Then on the form have a lookup to make sure 40 isn't hit.

 

 

Thanks for the reply, please could you explain what you mean.

If you were doing it with a file, create a text file with the number 0 in it. Then before the form is shown, open the file read the number if it is less than 40, show the form.

 

Once the form has been submitted, update the file by taking the number and adding 1 to it.

 

Same thing for the database, except you would have a row for it rather than a file.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.