|
Posted by Jeff on 01/26/07 13:18
Hey
I'm using php 5.20 and MySql5 to create my web site
I have a mulitiple submission problem on a form in one of the pages.
On this form I've placed a hidden field:
<?php
echo "<input type='hidden' name='uniq' value='".uniqid(microtime(),1)."'
/>";
?>
This "uniq" value is sent to the database together with the rest of the
data. The stored procedure checks if the value of "uniq" already exist in
the database.. the record is only added if stored procedure cannot find the
value in the database...
But after I've submitted the form and navigate to another web page on my web
site - > then again I click the back button... Instead of seeing the web
page with the form I see an annoying message telling me web page is "Webpage
is expired". Now I click refresh in the browser and saves the data again...
I guess it create a new record because when I clicked on the refresh button
a new value for "uniq" was provided..
I performed this test on IE7
I don't know how to solve this problem, so I hope maybe some of you can give
me some tips on how to solve this!
Best Regards
Jeff
Navigation:
[Reply to this message]
|