I have been struggling with this for a couple of days, even losing sleep.
I figure this is a simple thing to acheive but while my html,css is excellent my PHP scripting skills are poor, but I am having ago.
SCENERIO:
I have a search box on one of my sites.
It is a standard html form.
when the query is entered it POSTs to an external URL which contains a catalogue of goods, the external domain then sends the data into an IFRAME on my domain.
It works flawslessly no problems.
However, there are several pages all coded in html from scratch that do not contain an IFRAME for display purposes but contain the search box; the search box is intergrated in the NAVBAR.
Also the search box is on my index page which does not contain an iframe; if one is implemented it will destroy the sites look.
WHAT I NEED TO ACHEIVE:
I need to send the search query from the non iframed pages to another generic page containing the iframe. Simple I thought but no, I cant use javascript due to Cross site security , I have tried. here is my form.
Code: Select all
<form method="post" action="external sites catalogue" target=content>
<fieldset>
<input type="text" class="text" name=lookfor value="Search" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"maxlength="255" />
<input type="image" src="images/topnav/btn_search.png" class="button" />
</fieldset>
</form>thankyou