Ensure a form is only submitted once

Discussion in 'Databases' started by weknowtheworld, Apr 16, 2007.

  1. #1
    Hi,

    Please help how to ensure a FORM is only submitted once?
    this.submitted is already true, why do we still need disableSubmit(this)?

    Thanks. :confused:
     
    weknowtheworld, Apr 16, 2007 IP
  2. linkstraffic

    linkstraffic Well-Known Member

    Messages:
    388
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    133
    #2
    Why would want to do so?
    You should rather check on the server side the entries!
    Otherwise you could use cookies with javascript to check this; this way you track when a user submit a form once or twice on the client side.
     
    linkstraffic, Apr 20, 2007 IP
  3. panfor

    panfor Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can use simple javascript
     
    panfor, May 24, 2007 IP
  4. gibex

    gibex Active Member

    Messages:
    1,060
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    95
    #4
    you can use JS to enable/disable submit button, but if I disable JS , I can submit forever to that page
     
    gibex, May 24, 2007 IP