Getting checked or unchecked checkboxes on update page from checkbox-group

Hallo experts.
How can i get checked or uncheched my checkboxes in a update page getting the values from a column where i have values inserted with a checkbox group.
<input <cfif (#dboartikel.Metallic# EQ 1)>checked="checked"</cfif> type="checkbox" name="Metallic" id="Metallic" value="1" />
i can get it for i checkbox that takes the value from one column with one value.
I have also some thing like that:
<input type="checkbox" name="Besonderheiten" value="text1" />
<input type="checkbox" name="Besonderheiten" value="text2" />
<input type="checkbox" name="Besonderheiten" value="text3" />

Where Tex1,Text2,Text3 are values stored in one comn(text1,text2,text3)
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

<cfquery  datasource="" name="data">
select val from tbl_tasks

<cfset vallist = valuelist(data.val,',')>

<input type="checkbox" name="test" <cfif listfind(vallist ,1)> checked </cfif> value="1" >

valuelist takes queryname.column name and the delemiter and creates a list with all values of that column then check with cfif statemnt listfind in each checkboc input statement

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PanosAuthor Commented:
If table is :artikel
  column :Besonderheiten
  Text     :ABS,ESP
  checkbox group :besonderheiten
What is he exactly code i must use?
Refer to the code below:
<cfquery datasource="panosSQL" name="q">
select Besonderheiten from artikel
<form action="thisForm.cfm" method="post">
<cfoutput query="q">
	<cfif Besonderheiten is "ABC" OR Besonderheiten is "ESP">
		<input type="checkbox" checked="checked" name="besonderheiten" value="#Besonderheiten#"><br>
		<input type="checkbox" name="besonderheiten" value="#Besonderheiten#"><br>	

Open in new window

The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

<cfquery  datasource="" name="data">
select Besonderheiten from artikel

<cfset vallist = valuelist(data.Besonderheiten,',')>

<input type="checkbox" name="Besonderheiten" <cfif listfind(vallist,'ABC')> checked </cfif> value="ABC" >
<input type="checkbox" name="Besonderheiten" <cfif listfind(vallist,'ESP')> checked </cfif> value="ESP" >
PanosAuthor Commented:
Hallo hielo.
I think i must find something like srikanthmadishetti has written.
I have the possibility to check 40 checkboxes in a checkbox group.
It is easear to have a cfif tag that is checking if a spesific text value exist in a column.
I have checked it out but i have not get it working.I have no numbers in the column,only text.
PanosAuthor Commented:
Hallo srikanthmadishetti .
Your code is working fine
Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.