Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Limiting Submissions in form emailer

    I have like very,very little exp. in html coding but do have the basics down. I have an operational form emailer but I want to be able to limit the number of submissions. For example, after 50 submissions I want to be able to stop the submissions so that the 51st person wouldn't be able to send the form. I have no idea of this is a server-side script or a client-side script or any idea about how to do this.

    thanks.

  • #2
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    947
    Thanks
    0
    Thanked 130 Times in 129 Posts
    This requires a server-side script.

    Client-side scripts are only working within the users session, and cannot access information on what other users have done.

  • #3
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok. Then, how would I go about doing that?

  • #4
    Regular Coder
    Join Date
    Oct 2009
    Location
    Florida
    Posts
    155
    Thanks
    16
    Thanked 2 Times in 2 Posts
    You could code this in PHP and set up a MySQL database. Then use phpMyAdmin and just set up a submission count table. Then on form submission, use a query to check to see how many submissions there have been, and if it is less than 50, update the new total. It would be a nice PHP/MySQL project to get into if you have no experience.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •