Hi all,
I am hoping to check that a form variable contains a key word, such as bracelet. This form variable can be any of the following:
"and Gold Bracelet"
"and Diamond Bracelet"
"and Diamond Pendant"
I would like certain script to execute if the word bracelet is contained in the variable. I have coded something along the lines of the following (although this doesn't work.. This is sql scripting, need CFML format):
<cfif #trim(lcase(form.jewelry_type))# is like "%bracelet%">
Thanks!!
Jami
I am hoping to check that a form variable contains a key word, such as bracelet. This form variable can be any of the following:
"and Gold Bracelet"
"and Diamond Bracelet"
"and Diamond Pendant"
I would like certain script to execute if the word bracelet is contained in the variable. I have coded something along the lines of the following (although this doesn't work.. This is sql scripting, need CFML format):
<cfif #trim(lcase(form.jewelry_type))# is like "%bracelet%">
Thanks!!
Jami