pealo86 Posted January 19, 2012 Share Posted January 19, 2012 I've set up a form in the sidebar of: - http://www.mattpealing-server.co.uk/~devashwo/ When the form is submitted, the results are supposed to be displayed in the iframe on this page: - http://www.mattpealing-server.co.uk/~devashwo/search/ However as you can see, if you submit the form from the homepage, the page strangely opens up in a new tab (and the form data isn't posted properly to the iframe resulting in an error message). Also, if you try to submit the form from the search page itself, sometimes the page you are browsing then opens up in the iframe. (see attached image). This doesn't appear to happen all the time however, it seems to be an intermittent problem. I've set my form up like so: <form action="<?php echo get_permalink(17); ?>" method="post" target="vebra"> and my iframe: <iframe id="vebra" name="vebra" src="http://www.vebra.com/home/quick/PFresults.asp"></iframe> But cannot see anything wrong with the code that would cause bizarre errors such as this? Quote Link to comment https://forums.phpfreaks.com/topic/255355-trouble-posting-form-results-to-iframe/ Share on other sites More sharing options...
spiderwell Posted January 27, 2012 Share Posted January 27, 2012 i just looked at your site, it appears to be working now? Quote Link to comment https://forums.phpfreaks.com/topic/255355-trouble-posting-form-results-to-iframe/#findComment-1311712 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.