madhu86
11-08-2007, 02:34 AM
In my form, when the page is refreshing the last added record adding to the database again and also to the grid.how to stop this?please help.......:confused: :confused: :confused: :confused: :confused:
|
Click to See Complete Forum and Search --> : Refresh is adding last record to the database madhu86 11-08-2007, 02:34 AM In my form, when the page is refreshing the last added record adding to the database again and also to the grid.how to stop this?please help.......:confused: :confused: :confused: :confused: :confused: bokeh 11-08-2007, 02:44 AM One option would be start a session and keep a copy of the POST array to be certain an identical copy is not resubmitted. Here's another idea. Serialize the POST array, MD5 it and store it in a UNIQUE column in your DB along with the rest of the data. madhu86 11-08-2007, 03:07 AM i'm new to php and this is my 1st project.so any code help would be greatly appreciated. and below is my form code......... find the attchment bokeh 11-08-2007, 03:26 AM Read this (http://www.webdeveloper.com/forum/showpost.php?p=359812&postcount=1)! Especially point 7. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |