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
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.