Posted by:
toumimi
(---.100.116-78.rev.gaoland.net)
Hi,
Problem is not from Wamp.
it depends of how browsers manage $_POST and header...
You can use some tips to avoid it.
- Add a $_SESSION['already_post'] for example
<?php
if (isset($_SESSION['already_post'])) echo 'Can\'t submit twice';
else {
$result = mysql_query("INSERT INTO ..."
$_SESSION['already_post']=1;
}
?>
- Use an intermediate page.
I often use a page which control datas, do query then go back to the first page..
Florian
WampServer Patch (
Screenshots)
Topic EN :
www.wampserver.comTopic FR :
www.wampserver.com