Arao Posted April 15, 2006 Share Posted April 15, 2006 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? Quote Link to comment Share on other sites More sharing options...
Arao Posted April 16, 2006 Author Share Posted April 16, 2006 bump... Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 16, 2006 Share Posted April 16, 2006 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 Link to comment Share on other sites More sharing options...
Arao Posted April 17, 2006 Author Share Posted April 17, 2006 [!--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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.