I’m trying to create a value list in ColdFusion. Basically, I want the users to be able to enter their fellow band members into individual fields. Then when submitted, any value which is present is stored into my database as a string rather than individual text values. When retrieving it from the database, run through it and use the comma as a separator and individually split the values again. On paper and in my head it sounds simple but I can’t get my head round it. Any help would be appreciated 🙂
Share
If you really want to go with that solution you could simply use
listToArray+cfloopor justcfloopto get the individual names:OR directly use the list and loop over it:
But … I would save the band member names in a separate table – such as:
Table
bands:Table
bands_members: