Form with target="_blank" will produce empty POST data in IE6

Posted by Seeker on Stack Overflow See other posts from Stack Overflow or by Seeker
Published on 2010-02-14T13:18:05Z Indexed on 2010/06/08 14:02 UTC
Read the original article Hit count: 181

Filed under:
|
|
|

I have an iframe containing a form. I want the form to point to a new window when the user submits it. Basically, the following code should do the trick:

<?php var_dump($_POST); ?>
<form method="post" action="test_post_to_blank.php" target="_blank">
<input type="text" name="test" value="test" />
<input type="submit" />
</form>

The problem is that in IE6 a new window is opened with empty POST data. Is there any other way I can get the job done? This does not occur in newer versions of IE.

Thanks in advance ;).

© Stack Overflow or respective owner

Related posts about html

Related posts about XHTML