mike1313 Posted November 29, 2007 Share Posted November 29, 2007 If I have an iframe embedded into the page and a form on the main page how would I submit the form to the iframe? Link to comment https://forums.phpfreaks.com/topic/79482-solved-iframe-and-a-form/ Share on other sites More sharing options...
phpQuestioner Posted November 30, 2007 Share Posted November 30, 2007 do this: <iframe name="myFrame" src="http://www.google.com" width="400" height="300" frameborder="0"></iframe> <br><br> <form action="YourPageNameHere.php" target="myFrame" method="post"> Email: <input type="text" name="email"> <input type="submit" value="Send"> </form> Link to comment https://forums.phpfreaks.com/topic/79482-solved-iframe-and-a-form/#findComment-402525 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.