View Single Post
Old 06-06-2012, 02:33 PM   PM User | #2
dan-dan
Regular Coder

 
dan-dan's Avatar
 
Join Date: Aug 2009
Location: England
Posts: 483
Thanks: 22
Thanked 79 Times in 78 Posts
dan-dan is on a distinguished road
PHP Code:
<?php
$url 
= isset ($_GET['url']) ? $_GET['url'] : ""// Retrieves $_GET variable from URL named 'url'
$title = isset ($_GET['title']) ? $_GET['title'] : ""// For title
$url "http://www.codingforums.com/showthread.php?t=263790"// Test value
$title "TEST PAGE"// Test value
?>

<html>
<head>
   <title><?php echo $title?></title>

<style type="text/css">
iframe {
   width: 100%;
   height: 100%;
   border: none;
   scroll: auto;
}
</style>   
</head>

<body>
   <iframe src="<?php echo $url?>"></iframe>
</body>

</html>
dan-dan is offline   Reply With Quote