codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Form validation with prevention of duplicate submissions  Colin MacGregor at 16:58 on Friday, February 13, 2004
 


I have a form that creates new records in a database. Two of the submitted fields must be unique in the DB. Duplicate submissions get a server error message and prevent the user from accessing the new record in the next DB form page.

I'm looking for a way to prevent duplicate submissions in a way that will run only if the form validation Javascript returns true. It shouldn't block submission if it fails validation, so errors can be corrected and re-submitted.

It should also allow the user to over-ride prevention of duplicates by clicking the re-set button, so the form can be used again with a new set of data to create another unique record.

I tried various uses of enable and disable of the submit button but haven't been able to get this combination to work.

Any and all ideas gratefully received!








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  What do you mean by ASP.NET MVC Execution Process?
•  Re:
•  Re:
•  one java progarm handle two socket connection
•  How to navigate database page?
•  "check the swingweight of your wedges
•  "Fitting Wedges
•  "Fitting Wedges
•  "Find the shaft for you


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2012