Jump to content

Archived

This topic is now archived and is closed to further replies.

Arao

$_GET

Recommended Posts

I have an external php file put into my main page through an iframe, and I'd like to get from the main page's URL. How would I go about doing this?

Share this post


Link to post
Share on other sites
If you want to pas the GET data from the parent window then you'll want to feed the GET data to the frame like so:
[code]<frame src="pagename.php?<?php echo $_SERVER["QUERY_STRING"]; ?>">[/code]
Now your pagename.php should be able to access the GET data in the parent window.

Share this post


Link to post
Share on other sites
[!--quoteo(post=365367:date=Apr 16 2006, 03:12 PM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 16 2006, 03:12 PM) [snapback]365367[/snapback][/div][div class=\'quotemain\'][!--quotec--]
If you want to pas the GET data from the parent window then you'll want to feed the GET data to the frame like so:
[code]<frame src="pagename.php?<?php echo $_SERVER["QUERY_STRING"]; ?>">[/code]
Now your pagename.php should be able to access the GET data in the parent window.
[/quote]

thanks!

Share this post


Link to post
Share on other sites

×

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.