parag74254 Posted January 4, 2015 Share Posted January 4, 2015 I'm going to create a web page with <iframe> tag & want that the src of <iframe> change as value of url in query string changes.i.e. mysite.com/?url=google.com then,src of <iframe> should google.com Link to comment https://forums.phpfreaks.com/topic/293651-php-query-string/ Share on other sites More sharing options...
QuickOldCar Posted January 4, 2015 Share Posted January 4, 2015 In the simplest way if(isset($_GET['url']) && trim($_GET['url']) != ''){ echo "<iframe src='".$_GET['url']."'></iframe>"; } Iframing websites is horrible, blank pages, jump out of frame scripts,redirects and so on. Also have the iframe sizing issues versus clients browser size. Google will be a white page. Any reason to try and iframe this when someone can visit there? Link to comment https://forums.phpfreaks.com/topic/293651-php-query-string/#findComment-1501688 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.