Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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
Replies are listed 'Best First'.
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 having an uproarious good time at the Monastery: (4)
As of 2015-08-31 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (351 votes), past polls