I think this must be some kind of PHP ISAPI or IE bug.

If I replace this:

header('Location:'. $url);
exit;

WIth

echo "<script language='javascript'>\n";
echo "location.replace('$url');\n";
echo "</script>";

Then the double post does NOT HAPPEN.


----- Original Message ----- From: Dan Shirah
To: Sukhwinder Singh
Cc: php-windows@lists.php.net
Sent: Thursday, June 26, 2008 1:31 AM
Subject: Re: [PHP-WIN] IE/ IIS / PHP - Form posted twice in case of redirection


Are you sure it's not something in your code?

I am also using IE/IIS/PHP and I have a form that on submission closes the page and opens up a new window displaying "Your data has been saved" and it does not create 2 rows in my MSSQL database.

Dan

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to