One problem is that you are looking at "form.VIEW_DB" in both of your  
if statements in your action page.  I think you meant to use  
form.VIEW_DB in one and form.view_All in the other.

See if that helps.

Christian

On Friday, January 10, 2003, at 12:26 PM, [EMAIL PROTECTED] wrote:

> I have a form where a user can select which types of tasks can be  
> viewed. These tasks are all check boxes. When I click on the check box  
> and submit to the processing page the value zero appears for all  
> checkboxes regardless if they are checked or not. I have tried a few  
> things and have not pinned it down yet. Included is a portion of the  
> code and if anyone could help it would be appreciated.
>
> <form action="x_edituser.cfm" method="post">
> <table width="80%" border="1" align="center" cellpadding="0"  
> cellspacing="1">
>       <tr>
>               <td width="105" class="columnheading">View Task Types</td>
>               <td class="defaulttext" >
>                       &nbsp;ALL:
>                       <cfif #GetUserInfo.rf21# EQ 1>
>                               <input type="checkbox" name="view_All" value="1" 
>checked>
>                       <cfelse>
>                               <input type="checkbox" name="view_All" value="0" >
>                       </cfif>
>                       DB:
>                       <cfif #GetUserInfo.rf22# EQ 1>
>                               <input type="checkbox" name="view_DB" value="1" 
>checked>
>                       <cfelse>
>                               <input type="checkbox" name="view_DB" value="0" >
>                       </cfif>
>               </td>
>       </tr>
> </table>
> <center><input class="inputsmall" type="submit"  
> value="Submit"></center>
> </form>
>
> ACTION PAGE (I am just outputing the variables that I am passing at  
> this point)
>
> <CFIF ISDEFINED('form.VIEW_DB')>
>       <cfset vall=1>
> <cfelse>
>       <cfset vall=0>
> </cfif>
>
> <CFIF ISDEFINED('form.VIEW_DB')>
>       <CFSET vDB = 1>
> <CFELSE>
>       <CFSET vDB = 0>
> </CFIF>
>
> <cfoutput>ALL: #vALL#</cfoutput><br>
> <cfoutput>DB: #vDB#</cfoutput>
>
>
> ....................................
> Get your own free email account from
> http://www.popmail.com
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to