views:

221

answers:

1

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 ;).

A: 

Here is the solution.

Sarfraz