[ic] [if cgi]

Kevin Walsh interchange-users@interchange.redhat.com
Thu Apr 4 21:21:01 2002


> I'm trying to use [if cgi blahblah eq whateverhere].
> 
> It works if I use [if cgi blahblah eq 123] but when I try to use data in the
> database, it doesn't.  Here is what I have tried:
> 
> [value name="actual" set="[data table='players' column='key_num' key='[data
> session username]']" hide=1]
> 
> [if cgi blahblah eq [value actual]]
> [if cgi blahblah eq '[value actual]']
> [if cgi blahblah eq "[value actual]"]
> 
> None of these work, can someone help?
> 
Try:
    [if type="cgi" term="blahblah" op="eq" compare="[value actual]"]

or:
    [if type="explicit" compare=`$CGI->{blahblah} eq $Values->{actual}`]

The [if] section of the Tags Reference may prove useful.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/