[ic] [if] ????

interchange-users@interchange.redhat.com interchange-users@interchange.redhat.com
Mon Jan 28 10:47:11 2002


Hi,

How do I compare a value retrived from database to a value receive from CGI form?

here is my code:

                  [loop search="
                        fi=options
                        se=[item-code]
                        sf=sku
                        se=1
                        sf=o_enable
                  "]
  
[if type=value term="loop-code" op="eq" compare="[cgi option_code]"]
   You have selected this option
[/if]

                  [/loop]


all the search function, the value of CGI option_code is valid, but the if statement somehow doesn't work.  I know I did a mistake somewhere, but I have been trying to debug it for 2 days without success.

Thank you for your expert advice.