toolman Posted August 5, 2015 Share Posted August 5, 2015 Hi, I have an input field on a page which I have then added to another page in an iframe. How can I make the field submit in the window that has the iframe in instead of inside the iframe? Many thanks! Quote Link to comment https://forums.phpfreaks.com/topic/297642-submit-form-outside-of-iframe/ Share on other sites More sharing options...
Solution cyberRobot Posted August 5, 2015 Solution Share Posted August 5, 2015 If I understand correctly, your form is inside of an iframe...and you want to break out of the iframe when the form is submitted. If that's correct, you could add the "target" attribute to your <form> tag and set it to "_top". Quote Link to comment https://forums.phpfreaks.com/topic/297642-submit-form-outside-of-iframe/#findComment-1518080 Share on other sites More sharing options...
toolman Posted August 8, 2015 Author Share Posted August 8, 2015 Thanks, it worked Quote Link to comment https://forums.phpfreaks.com/topic/297642-submit-form-outside-of-iframe/#findComment-1518273 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.