Jump to content

Posting to an iframe


DarkPrince2005

Recommended Posts

I'm trying to post from a form to a form within an iframe. It works without the iframe, but nothing happens when the iframe is included.

 

<form target="iframe" method="post" action="2.php">
<input type="text" name="uid" /><br />
<input type="text" name="pwd" />
<input type="submit" name="Login" value="Login"/>
</form>

 

<iframe src="http://dansa.org/member/welcome.php" id="iframe" name="iframe" width="100%" height="300">Your browser does not support iframes.
</iframe><pre><?php var_dump($_POST); ?></pre>

Link to comment
https://forums.phpfreaks.com/topic/188181-posting-to-an-iframe/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.