in reply to Testing form params
if (grep { $name eq $_ } @list and $ENV{REMOTE_ADDR} ne "$ip" ) {.....
Or the hash way...
my %hash = qw/name ip name2 ip2 name3 ip3/; if ( exists $hash{$name} and $ENV{REMOTE_ADDR} ne $hash{$name} ) {.... +..
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Testing form params
by Anonymous Monk on Jan 13, 2004 at 11:15 UTC | |
by b10m (Vicar) on Jan 13, 2004 at 11:24 UTC | |
by Anonymous Monk on Jan 13, 2004 at 12:04 UTC | |
by b10m (Vicar) on Jan 13, 2004 at 12:26 UTC |