Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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]
[Corion]: Meh. Some Open Source people get bought out by advertising firms to change their projects to include advertising. But nobody has approached me to buy out WWW::Mechanize ::$browser from me, to make the browsers launch an ad page ...
[Corion]: ... instead of about:blank, which the modules currently do at startup.
[Corion]: Maybe I'm too pricey. But I haven't received any offers at all ;-)
[Corion]: The ad hits from CPAN testers alone should bring in a pretty penny IMO. But maybe I misestimate the CPC that ads pay.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2017-07-24 14:18 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (354 votes). Check out past polls.