PHP Code:
<?php
if (isset($_GET['location']) && $_GET['location'] != "") {
header('Refresh:5; url='.$location);
echo 'Fetching Page: '.$_GET["location"];
}
else {
//if url was not passed, then display form
?>
<form action="<?=$_SERVER['PHP_SELF'];?>" method="GET">
URL: <input type="text" name="location"> <input type="submit" value="Fetch URL">
</form>
<?php
}
?>
could work, but is it possible to display absolutely nothing if no URL? Would it just be:
PHP Code:
<?php
if (isset($_GET['location']) && $_GET['location'] != "") {
header('Refresh:5; url='.$location);
echo 'Fetching Page: '.$_GET["location"];
}
?>
Bookmarks