| Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
On 3/24/2006 6:39 PM, Scott Ehrlich wrote:
> I'd like to put together a simple web page where, when visited, it
> provides a box to enter a URL. Once entered, it redirects you to the site.
If you want to pursue the php-based approach, consider this code:
<?php if (isset($_POST['url'])) exit(header("Location: {$_POST['url']}")); ?>
<html>
<body>
<form method="POST" action="<?=$_SERVER['PHP_SELF']?>">
<input type="text" name="url">
<input type="submit" value="begone">
</form>
</body>
</html>