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



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.
>
> The web page should be as absolutely as simple as possible.   I would 
> want an extra box to click for the redirection, too, such as OK or 
> ENTER or REDIRECT would tell the page to take the web site and direct 
> my browser to the destination I just entered.
>
> I'll look around for such code, but assistance from the group would be 
> most helpful.
>
> Again, the most basic HTML is all I want to do this.
>
> Thanks.
>
> Scott

Scott,

Here's an example using php:

Page one is straight HTML: http://billhorne.homelinux.org/scott.html

<HTML>
<HEAD>
<TITLE>Scott Erlich's redirect form</TITLE>
</HEAD>
<body>
<form name="scott" action="scott.php" method=post>
<input type="text" name="url" size="50">
<input type="submit" value="Submit">
</form>
</body>
</html>

Page two uses php: http://billhorne.homelinux.org/scott.php

<HTML>
<HEAD>
<TITLE>Scott's Redirect</TITLE>
<META name="description" content="Scott's Redirected Site">
<META name="keywords" content="Scott,Erlich">
</HEAD>
<?php
$url = stripslashes($_POST["url"]);
?>
<frameset rows="100%,*" border="0">
<frame src="<?php echo $url ?>" frameborder="0">
<frame frameborder="0" noresize>
</frameset>
</html>


HTH.

Bill Horne

-- 
E. William Horne
William Warren Consulting
Computer and Network Installation and Service
781 784-7287 (Voice)
781 784-0951 (Fax)
339 440-0724 (Cell)






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