Return data from Checkbox for a newbie
Here is my input tag:
<cfinput type="checkbox" name="checkbox1" id="box1" value="datafrom1" />
<cfinput type="checkbox" name="checkbox2" id="box2" value="datafrom2"/>
<cfinput type="checkbox" name="checkbox3" id="box3" value="datafrom3" />
Action page:
Is checkbox1 checked #IsDefined("form.checkbox1")#
Is checkbox2 checked #IsDefined("form.checkbox2")#
Is checkbox3 checked #IsDefined("form.checkbox3")#
But all says yes whether the checkbox is checked or not.
I know the answer is simple, but I am very new.
