Gossamer Forum
Home : Products : Gossamer Links : Discussions :

multi-select question

Quote Reply
multi-select question
Dear all,

I just added an additional column(e.g. shirt colour) in the links table. It's a multi-select field. That means pepole can select more than one option at the same time.

But I don't know how to use "if tag" to display the information. For example, a shirt that have the following colour availabe:

Shirt 1 colour: red, green, blue.

How can I use "if tag" to display in the following way?

Red : Yes
Green: Yes
Blue: Yes
Black : No
Orange : No

I tired to use the following tag:

<%if shirtcolour eq 'Red'%>
Red : Yes
<%endif%>

But it can't correct show the colour in red is available.

There is so some strange thing in the database. When I look at the column, it stored the information like that:
red#green#blue

Is it a problem?

Subject Author Views Date
Thread multi-select question Bear 1598 May 18, 2001, 12:50 AM
Post Re: multi-select question
Alex 1514 May 22, 2001, 1:22 PM