a question about submit button

Results 1 to 2 of 2

Thread: a question about submit button

  1. #1
    Join Date
    Dec 1969

    Default a question about submit button

    Hello, ASP guru<BR>I have this question about how tomake submit button unclickable. I am creating a form which will ask customer to input some personal information, the form is connected to the database so that all the informaiton can be saved when the customer click on the submit button. I certianly don&#039;t want duplicated record in my database so i am thinking if there is a way to disfunction the submit button after it is clicked once.<BR><BR>Thank you in advance!!!!!!!!!!!

  2. #2
    Join Date
    Dec 1969

    Default We need this in the FAQs...

    ...I answered this same question just yesterday!<BR><BR>&#060;SCRIPT Language=JavaScript&#062;<BR>var submitted = false;<BR><BR>function checkSubmit( )<BR>{<BR> if ( submitted ) return false;<BR> submitted = true;<BR> return true;<BR>}<BR>&#060;/SCRIPT&#062;<BR><BR>&#060;FORM ....&#062;<BR>...<BR>&#060;INPUT Type=Submit ... onClick="return checkSubmit( );"&#062;<BR><BR>*****************8<BR><BR>See if that does it.<BR><BR><BR>

Posting Permissions

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