Ask a Question related to ASP Database, Design and Development.
-
Laphan #1
Error Trapping the dreaded refresh
Hi All
My problem basically is as follows:
1) User enters their details to create a new account in my db.
2) They press the submit, the system successfully creates their new account
and then displays a page saying 'well done you've created your new account'.
3) The doofus (or clever clogs) clicks the Refresh button, which in turn
submits the details back to the db and creates a duplicate entry in my db.
I don't have a duplicate account num, as the system takes the max last one
and adds one to it so really no errors are generated, but it does mean that
they have 2 accounts now.
As mentioned above, this scenario crops up when doing a New Account page and
when they've just posted their order via the shopping cart final page (shall
we say). The latter worries me because duplicate orders would cause a lot
more hassle.
I realise this may be a common problem, but I'm not sure what the best
method is.
Your help/advice on how to handle this would really be appreciated.
Rgds
Laphan
Laphan Guest
-
Getting the dreaded "server is unreachable" error
For some reason, ColdFusion is not starting up with the server. I've tried to install three times now, and I get the same error each time. ... -
error trapping from DBI
I have a module which attempts to wrap methods from the standard DBI module to provide a facade through which those methods can be called on a... -
Dreaded Jet DB error 80004005 help needed. What causes this???
Hi All, I'm trying to understand what causes this error message: Microsoft JET Database Engine error '80004005' The Microsoft Jet database... -
Trapping Error Raised by COM object
Dear Group: If I raise an error in my COM object method, is there a way to trap it in my ASP code where I created the COM object using... -
Refresh Error
Okay, I'm displaying an entire table of numbers from my database. Using a form on the same page, you can enter an amount to add to the table and... -
Manohar Kamath [MVP] #2
Re: Error Trapping the dreaded refresh
The key is to redirect the user to another page -- something that confirms
the creation of account. This way, even if the user clicks on refresh, you
won't have duplicate entries.
--
Manohar Kamath
Editor, .netWire
[url]www.dotnetwire.com[/url]
"Laphan" <news@DoNotEmailMe.co.uk> wrote in message
news:40c32551_3@127.0.0.1...account> Hi All
>
> My problem basically is as follows:
>
> 1) User enters their details to create a new account in my db.
>
> 2) They press the submit, the system successfully creates their newaccount'.> and then displays a page saying 'well done you've created your newthat>
> 3) The doofus (or clever clogs) clicks the Refresh button, which in turn
> submits the details back to the db and creates a duplicate entry in my db.
> I don't have a duplicate account num, as the system takes the max last one
> and adds one to it so really no errors are generated, but it does meanand> they have 2 accounts now.
>
> As mentioned above, this scenario crops up when doing a New Account page(shall> when they've just posted their order via the shopping cart final page> we say). The latter worries me because duplicate orders would cause a lot
> more hassle.
>
> I realise this may be a common problem, but I'm not sure what the best
> method is.
>
> Your help/advice on how to handle this would really be appreciated.
>
> Rgds
>
> Laphan
>
>
Manohar Kamath [MVP] Guest
-
Laphan #3
Re: Error Trapping the dreaded refresh
wundabar!!!
thanks Manohar
Manohar Kamath [MVP] <mkamath@TAKETHISOUTkamath.com> wrote in message
news:eH5fwJ#SEHA.2908@TK2MSFTNGP10.phx.gbl...
The key is to redirect the user to another page -- something that confirms
the creation of account. This way, even if the user clicks on refresh, you
won't have duplicate entries.
--
Manohar Kamath
Editor, .netWire
[url]www.dotnetwire.com[/url]
"Laphan" <news@DoNotEmailMe.co.uk> wrote in message
news:40c32551_3@127.0.0.1...account> Hi All
>
> My problem basically is as follows:
>
> 1) User enters their details to create a new account in my db.
>
> 2) They press the submit, the system successfully creates their newaccount'.> and then displays a page saying 'well done you've created your newthat>
> 3) The doofus (or clever clogs) clicks the Refresh button, which in turn
> submits the details back to the db and creates a duplicate entry in my db.
> I don't have a duplicate account num, as the system takes the max last one
> and adds one to it so really no errors are generated, but it does meanand> they have 2 accounts now.
>
> As mentioned above, this scenario crops up when doing a New Account page(shall> when they've just posted their order via the shopping cart final page> we say). The latter worries me because duplicate orders would cause a lot
> more hassle.
>
> I realise this may be a common problem, but I'm not sure what the best
> method is.
>
> Your help/advice on how to handle this would really be appreciated.
>
> Rgds
>
> Laphan
>
>
Laphan Guest



Reply With Quote

