Canman2005 Posted February 11, 2010 Share Posted February 11, 2010 Dear All I have a standard page which has a HTML form doing a "POST" method. What I want to do is have 3 buttons on my page doing the following Button 1; Posts data as normal Button 2: Posts data to an alternative URL (pageone.php) with the target frame being an iframe called "iframeone" Button 3: Posts data to an alternative URL (pagetwo.php) with the target frame being an iframe called "iframetwo" I've looked all over and I cannot find anything like this, which I thought I would be able to find tons. Can anyone help? Thanks very much Dave Quote Link to comment https://forums.phpfreaks.com/topic/191802-posting-to-an-iframe-with-a-different-url/ Share on other sites More sharing options...
RussellReal Posted February 11, 2010 Share Posted February 11, 2010 expects form to be like this below <form> <submit onclick="void(e = this.parentNode,e.action = 'page2.php',e.target = 'iframe2');"> </form> Quote Link to comment https://forums.phpfreaks.com/topic/191802-posting-to-an-iframe-with-a-different-url/#findComment-1010947 Share on other sites More sharing options...
Canman2005 Posted February 11, 2010 Author Share Posted February 11, 2010 nice job, thanks. is it possible to attach that to a form field so when the user clicks out of a form field, it runs that? Quote Link to comment https://forums.phpfreaks.com/topic/191802-posting-to-an-iframe-with-a-different-url/#findComment-1011058 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.