Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://471095]
[LanX]: # Pestis Africana Suum
[erix]: that's an old plan, I think. Isn't there already a danewal (or some such name)?
[marto]: Build with -Wall
[erix]: Danewerk
[LanX]: I seem to remember that the danewall was build by the Frankish empire against the Danes
[erix]: 500 AD thru viking age
[erix]: that would make sense but wikipedia thinks otherwise
[LanX]: oh me was wrong ...
[erix]: but it always works both ways of course
[LanX]: Funny some weeks ago, I met people from the Cimbrian peninsula who didn't know it's called the Cimbrian peninsula ...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2018-03-22 18:42 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (283 votes). Check out past polls.