> From: "Justin Houchin" <justin@reliatek.com>
> If you hit the refresh button on the web browser (IE6.0), on
> the response page, it will resend the data to the program thus
> using the same information to create a new account and
> assigning it a new account number.

It sounds like the same thing could happen by inadvertently double clicking
on the "Submit" button on the "new account" form.  If so, the form's
"onSubmit" event can be used to return False if the form has already been
submitted.  Just use a global script variable to indicate the state of the
submit operation (if wasSubmitted is True then return False).

I also recommend the use of a session variable, stored on the server, and
indicating whether an account has already been added during the user's
session.

Nathan M. Andelin
www.relational-data.com




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.