HI,
I have asked this question on other php forums but they havnt come up with a solution.
Scenerio:
I have a webpage that contains a form, the query string is sent off site and the resulting search result is displayed in an Iframe on the same page. Simple, works a treat.
Problem:
I also have a landing page that does not contain an iframe BUT contains the search bar.
Obviously it wont display the resulting query from the external server as there is no Iframe.
So, PHP to the rescue or so I thought.
To Acheive:
I want to take the search query from the page without an Iframe, have the external perform the search and the resulting data displayed in an Iframe on ANOTHER page.
Sounds simple but for the life of me I cant figure it out.
here is my search form:
<form method="get" action="EXTERNAL URL" target=content>
<fieldset>
<input type="text" class="text" name="keywords" value="Search" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"maxlength="30" />
<input type="image" src="images/topnav/btn_search.png" class="button" />
</fieldset>
</form>
And here is the Iframe:
<iframe src="DEFAULT CONTENT" name="content" width="803" height="1200" align="left">Your browser is not capable of rendering the iFrame feature. Click here to view the page.</iframe>
Now surely someone can help.
I need to pass a query to an external site and return the data(html page) to another page on my site within an Iframe.
please take a look guys, it will be appreciated.
thankyou