Eliminate the duplicate posting

Results 1 to 3 of 3

Thread: Eliminate the duplicate posting

  1. #1
    Join Date
    Dec 1969

    Default Eliminate the duplicate posting

    i have a form in my asp page . How do i eliminate the duplicate posting possible by clicking submit button twice rapidly

  2. #2
    Chrace Guest

    Default RE: Eliminate the duplicate posting

    Idea, not tried:<BR>&#060;input type="hidden" name="ID" value="SomeUniqueID"&#062;<BR><BR>..check for it, if it exists in DB discard it.

  3. #3
    Skippie Guest

    Default THE ANSWER

    Use Javascript:<BR><BR>&#060;SCRIPT LANGUAGE="JavaScript"&#062;<BR> <BR>var submit;<BR><BR>submit = 0;<BR><BR>function chkSubmit() <BR>{<BR>submit += 1;<BR> <BR>if (submit == 1)<BR>return true;<BR>else return false;<BR>}<BR><BR>&#060;/SCRIPT&#062;<BR><BR><BR>Call the JavaScript function in the HTML FORM tag:<BR><BR>&#060;FORM METHOD="POST" ACTION="checkout.asp" ONSUBMIT="return chkSubmit()"&#062;<BR><BR><BR>It works... trust me...<BR><BR>--- Skippie

Posting Permissions

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