in reply to Need help protecting the user - detecting and redirecting browsers the ADVANCED way...
my (%passed, %failed, %untested); %passed = { MSIE50NT => 1, MSIE55NT => 1, URI_REDIRECT => 'http://passaddress/', }; # set %failed and %untested my $br_detect = 'palm'; # as found by HTTP::BrowserDetect if( defined $passed{$br_detect} ) { redirect( $passed{URI_REDIRECT} ) +} if( defined $failed{$br_detect} ) { redirect( $failed{URI_REDIRECT} ) +} defined $untested{$br_detect} ? '' : %untested{$br_detect} = 1; redirect( $untested{URI_REDIRECT} ); sub redirect { # your redirect logic here... }
~Particle ;Þ
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Need help protecting the user - detecting and redirecting browsers the ADVANCED way...
by S_Shrum (Pilgrim) on Mar 02, 2002 at 04:05 UTC | |
by particle (Vicar) on Mar 02, 2002 at 12:54 UTC | |
by S_Shrum (Pilgrim) on Mar 03, 2002 at 09:39 UTC |