Re: getting $_GET params from iFrame window to parent
| From: | John Hicks | Date: | Thu, 11 May 2006 15:41:55 +0000 |
| Subject: | Re: getting $_GET params from iFrame window to parent | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235987@lists.php.net to get a copy of this message | ||
blackwater dev wrote:
On 5/11/06, *John Hicks* <johnlist@gulfbridge.net <mailto:johnlist@gulfbridge.net>> wrote:blackwater dev wrote:would like to put the search form somewhere else on their site (it iscurrenly all onmy page within the iframe) and then call their search page to do the search,(This is an html/DOM thing, not PHP.)That's what the 'target' property of the <form> tag does: the response from the request from that form is directed to a different window (or to a different frame within the current frameset). You give the receiving window a name (when you create it) and refer to that name in the target argument.--JohnSorry John, I thought this might not be a php issue so I'll do more research on it now.
So I gave my iFrame a name:
<IFRAME name="mysite" align="middle" marginWidth="0" marginHeight="0"
frameBorder="0" src=" http://www.mysite.com" width="100%"
height="9000"></IFRAME>
Then on the parent page have a form:
<form name="search" method="get" action=" parent.htm" target="mysite">
<input type="hidden" name="aid" value="6">
<input type="submit">
</form>
Can I really specify another target other than _parent, _self, etc?
No, it was a joke. I was kidding.
Maybe you will believe the FM: http://www.w3.org/TR/html4/present/frames.html#adef-target
Remember to post your replies to the list!!
--J