Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple HTML help



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>





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org