Re: Duplicate records added from post forms, easy solutions?
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sun, 16 Jul 2006 10:12:19 -0400
mindwarp wrote:
Hi,
When a user submits / posts data my php script Inserts data into my
database.
If they refresh the script or click back and click submit again I get
duplicate record.
Is there an easy solution to this?
Or do I need to create a hidden field which contains some sort of
unquie data, like a time stamp and have a have a unique field which
stops it adding the record?
Best regards,
Jules.
You could also set a session variable indicating the record had been added.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- Duplicate records added from post forms, easy solutions?
- From: mindwarp
- Duplicate records added from post forms, easy solutions?
- Prev by Date: Re: Forced download issue with IE6
- Next by Date: Re: [OT] Your Sig
- Previous by thread: Re: Duplicate records added from post forms, easy solutions?
- Next by thread: Re: Duplicate records added from post forms, easy solutions?
- Index(es):
Relevant Pages
|