in reply to form cgi

You're assigning not checking.
That is, you meant "==", not "=".
You want to use the "eq" operator for strings anyway, so change.
You also want to use a scalar, not an array.
Corrections:
$quearyand = new CGI; $array_and = $queryand->param('option_and'); $array_or = $queryand->param('option_or'); if ($array_and eq "AND") { print .... } if ($array_or eq "OR") { print ... }

Replies are listed 'Best First'.
Re^2: form cgi
by Anonymous Monk on Jun 29, 2005 at 18:14 UTC
    thanks for that