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
    Regular Coder
    Join Date
    Mar 2006
    Posts
    478
    Thanks
    3
    Thanked 0 Times in 0 Posts

    prevent form from being submitted over and over again?

    i have created a forum site for our local community but it turns out that it is possible for people to post a message many times over by clicking back and then re submitting again which i need to prevent.

    if anyone has any ideas how i can do this plz let me know as i need to get it back up and running soon as it was a very popular part of our site and do not want to lose the members because of this isue i have now found.

    thanks in advance for your help.


    oh and Merry Xmas...

  • #2
    Regular Coder
    Join Date
    Feb 2007
    Location
    Canada
    Posts
    924
    Thanks
    10
    Thanked 56 Times in 55 Posts
    One method would be to have the form submit the time using the now() and the receiving script can check to see if a certain amount of time had passed since the submission. Details would be up to you to determine.

  • #3
    Regular Coder
    Join Date
    May 2005
    Posts
    563
    Thanks
    0
    Thanked 3 Times in 3 Posts
    yeah just set a limit elsewhere as to how often they can post into the database.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,858
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    If the DB is not very large, then you can call a function to check for some fields to see if there is an entry posted in the same day with same contents by the same user. If not, just insert else do nothing.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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