Hi
I am a newbie on Coldfusion and I love it.And also I love this form.. thanks people.
I have a difficulty on something explained below, I searched the whole forum last night and could not find an answer for me and I decided to write. Please help me with this problem..
I am working on a project in which I need to update a list of checkboxes on people's preferences..
In short it is a book review project, people include their name, email, and comments about a book.
Name (textbox)
Email (textbox)
Book was helpful(checkbox)
I read the book before (checkbox)
I recommend the book (checkbox)
...
...
...
I am not having difficulty adding new people and their comments. But when when I try updating information I am having difficulty showing people's preferences that they included before as checkboxes and also I do not know how to help them to update..
Such as if somebody selected "yes" for the question "book was helpful" and want to change his idea as "no" what kind of coding I should add to the checkboxes..
I am a little bit confused on this coding. I tried
<CFIF #WasHelpful# eq 1>
<cfinput name="WasHelpful" type="checkbox" checked="yes">
<cfelse>
<cfinput name="WasHelpful" type="checkbox">
</CFIF>
With this code it is showing what his answer was before but if I unselect it or leave it unselected I get a message "WasHelpful" variable is undefined...
Thank you very much for your help...
I am a newbie on Coldfusion and I love it.And also I love this form.. thanks people.
I have a difficulty on something explained below, I searched the whole forum last night and could not find an answer for me and I decided to write. Please help me with this problem..
I am working on a project in which I need to update a list of checkboxes on people's preferences..
In short it is a book review project, people include their name, email, and comments about a book.
Name (textbox)
Email (textbox)
Book was helpful(checkbox)
I read the book before (checkbox)
I recommend the book (checkbox)
...
...
...
I am not having difficulty adding new people and their comments. But when when I try updating information I am having difficulty showing people's preferences that they included before as checkboxes and also I do not know how to help them to update..
Such as if somebody selected "yes" for the question "book was helpful" and want to change his idea as "no" what kind of coding I should add to the checkboxes..
I am a little bit confused on this coding. I tried
<CFIF #WasHelpful# eq 1>
<cfinput name="WasHelpful" type="checkbox" checked="yes">
<cfelse>
<cfinput name="WasHelpful" type="checkbox">
</CFIF>
With this code it is showing what his answer was before but if I unselect it or leave it unselected I get a message "WasHelpful" variable is undefined...
Thank you very much for your help...