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 Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted January 4, 2015 Share Posted January 4, 2015 (edited) 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? Edited January 4, 2015 by QuickOldCar 1 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.