<form method="post" action="">
<input type="text" name="url" size="50"/>
<input type="submit" name="submit" value="Отиди"/>
</form>
<?php
if (isset($_POST['submit'])) {
$link = htmlspecialchars($_POST['url']);
if(@get_headers($link)) {
if(@fopen($link,r)) {
$url = file_get_contents($link);
echo '<div style="width:900px;height:900px">';
echo $link;
echo '</div>';
}
}
}
?>