Jump to content

Trouble Posting Form Results to iframe


pealo86

Recommended Posts

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?

post-95215-13482403191865_thumb.png

Link to comment
https://forums.phpfreaks.com/topic/255355-trouble-posting-form-results-to-iframe/
Share on other sites

  • 2 weeks later...

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.