Re: IE/ IIS / PHP - Form posted twice in case of redirection

From: Date: Wed, 25 Jun 2008 21:07:58 +0000
Subject: Re: IE/ IIS / PHP - Form posted twice in case of redirection
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-28979@lists.php.net to get a copy of this message
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

« previous php.windows (#28979) next »