How do I access iframe parent url query string values

HI guys,

I am working on a project where there is a form within an iframe. I would like to pass a value to a form field like so:


<input type="text" name="additional_id" size="9" maxlength="9" value="<?php echo $_GET["id"] ?>" />

I tested that and it works fine in a stand alone window. Is there away to get that parent window string value from within the iframe? Any help with this would be greatly appreciated.

Thanks.

PHP knows nothing of your frame or even of it’s existence
QS can be passed to iframe manually, as iframe tag formed with PHP

I was afraid that is the answer I would get. Could you give me an example of what iframe tag I could use? I hope thats not asking too much. Not much of a programmer. And if this iframe happens to be a Joomla wrapper element (which it is incidentally ) can it be done?

same as any other PHP generated url:

echo '<iframe src="form.php?'.$_SERVER['QUERY_STRING'].'">';

Dunno about joomla, sorry. never seen any

ok gotcha. Thanks for the assist not sure how to make this work with Joomla though. But a helpful tip that will certainly put me one step closer.