|
Posted by Alvaro G. Vicario on 07/15/06 10:14
*** mindwarp escribió/wrote (15 Jul 2006 02:31:04 -0700):
> If they refresh the script or click back and click submit again I get
> duplicate record.
>
> Is there an easy solution to this?
This simpliest solution is to move user away from insert script. After
inserting data you can use header() to send a "Location" header and
redirect user to another page (which can be even the same, but with an
empty form).
Of course, this is not bulletproof but should be enough.
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Navigation:
[Reply to this message]
|