[thelist] Submitting contents of form only once

Cory Preus cory_preus at cnt.com
Fri Jan 5 14:47:11 CST 2001


I would suggest either breaking up the form into distinct parts on distinct
pages. One could error check and process the sections faster then pass on
the information accordingly.

-or-

One could also set a session variable in ASP (shudder) and increment it
every time the submit button is pressed. If it is greater or equal to 2, it
would skip the database section. When the first request is complete, the
database section could dump the session variable.

I haven't done it either way -- but I'm sure you could find a happy solution
between the two.

Cory 

-----Original Message-----
From: Ben Gustafson [mailto:ben_gustafson at lionbridge.com]
Sent: Friday, January 05, 2001 1:22 PM
To: thelist at lists.evolt.org
Subject: [thelist] Submitting contents of form only once


Does anyone know an easy way, using JavaScript and/or ASP, to make a form be
submitted only the first time a user clicks the Submit button? I'm doing a
simple database insert with the contents of a form, and since it's a long
form, users have a tendency to click the Submit button a few times.

Thanks in advance for your help,

--Ben Gustafson


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt ! 




More information about the thelist mailing list