Guest_imported
New member
- Jan 1, 1970
- 0
Hi guys,
I need help in a form which is checkbox form.
Actually I am using coldfusion too.
What i am doing is i am getting out a number of records on a search criteria and displaying it in a form output with a check box infront of each record.
the user will check the boxes to delete the record like in hotmail.
the value of checkbox stores the Id of the record and when users select multiple records the value is a string like below
if user selected record1,2,3
then
value is
id1,1d2,1d3
now my question is how do i access each of the id .
if i want to access 1d1 then 1d2 then 1d3
is there any way in HTMl or eve in coldfusion please instruct me.
Thanx in advance
GG
<Form action="asearchaction1.cfm" method="post">
<tr>
<td>
<input name="idselect" value="#asearch.id#" type=checkbox> </td>
<td>#asearch.contact#</td>
<TD>#asearch.company#</TD>
<Td>#asearch.city#</TD>
<TD>#asearch.state#</TD>
<TD><a href="Detail.cfm?DetailCode=#asearch.id#">Detail</a> </td>
<TD><a href="delete.cfm?deletecode=#asearch.id#">Delete</a> </td>
</TR>
<input value="Submit " type=submit>
<input value="Clear form" type=reset>
</form>
I need help in a form which is checkbox form.
Actually I am using coldfusion too.
What i am doing is i am getting out a number of records on a search criteria and displaying it in a form output with a check box infront of each record.
the user will check the boxes to delete the record like in hotmail.
the value of checkbox stores the Id of the record and when users select multiple records the value is a string like below
if user selected record1,2,3
then
value is
id1,1d2,1d3
now my question is how do i access each of the id .
if i want to access 1d1 then 1d2 then 1d3
is there any way in HTMl or eve in coldfusion please instruct me.
Thanx in advance
GG
<Form action="asearchaction1.cfm" method="post">
<tr>
<td>
<input name="idselect" value="#asearch.id#" type=checkbox> </td>
<td>#asearch.contact#</td>
<TD>#asearch.company#</TD>
<Td>#asearch.city#</TD>
<TD>#asearch.state#</TD>
<TD><a href="Detail.cfm?DetailCode=#asearch.id#">Detail</a> </td>
<TD><a href="delete.cfm?deletecode=#asearch.id#">Delete</a> </td>
</TR>
<input value="Submit " type=submit>
<input value="Clear form" type=reset>
</form>