Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: form cgi

by cbro (Pilgrim)
on Jun 29, 2005 at 16:38 UTC ( #471095=note: print w/ replies, xml ) Need Help??


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 ... }


Comment on Re: form cgi
Download Code
Re^2: form cgi
by Anonymous Monk on Jun 29, 2005 at 18:14 UTC
    thanks for that

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://471095]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (13)
As of 2014-07-25 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (172 votes), past polls