Hello all,
I'm making my own meta-search, this because i have 3 databases, nut therefore i need the
in->param('type') only to be one of the following value's
web,email,stb
but the following wont work:
use CGI;
use CGI::Carp qw(fatalsToBrowser);
my $in = new CGI;
my $query = $in->param('query');
my $query_q = &urlencode($query);
my $nh = $in->param('nh') | | 1;
$query or &homepage();
my $database = web;
if ($in->param('type') && (($in->param('type') == web) | | ($in->param('type') == email) | |
($in->param('type') == stb) | | ($in->param('type') = av))) {
$database = $in->param('type');
}
Can some help me out ?
I'm making my own meta-search, this because i have 3 databases, nut therefore i need the
in->param('type') only to be one of the following value's
web,email,stb
but the following wont work:
use CGI;
use CGI::Carp qw(fatalsToBrowser);
my $in = new CGI;
my $query = $in->param('query');
my $query_q = &urlencode($query);
my $nh = $in->param('nh') | | 1;
$query or &homepage();
my $database = web;
if ($in->param('type') && (($in->param('type') == web) | | ($in->param('type') == email) | |
($in->param('type') == stb) | | ($in->param('type') = av))) {
$database = $in->param('type');
}
Can some help me out ?