Hi,

You can do a couple of things.

1) just print a Location: header like

if ($name eq 'invader') {
        print "Location:http://www.foo.com/invader\n\n";;
        }


Or, using CGI.pm, use the redirect function:

if ($name eq 'invader') {
        print redirect('http://www.foo.com/invader');
        }

On Wed, 26 Sep 2001, Wagner wrote:

> Hi,
>
> I want to do a redirection based on a variable....
>
> for example:
>
> if ($name eq 'invader') {
>
> redirection to some URL ;
>
> }

Lisa Wolfisch Nyman  <[EMAIL PROTECTED]>  IT Warrior Princess
"Life is too short to wear ugly underwear."
Get the facts at http://quickfacts.census.gov/



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to