> Thane Sherrington wrote: 
> 
>>I'm building a multipaged form with back and next buttons.  All the form 
>>fields are checkboxes.  I want the boxes to remember what is checked when I 
>>go back and forth between pages.  Do I create a list of hidden form fields 
>>carrying the values already submitted, or do I use session variables, or is 
>>there a better way that I'm not seeing?

I'd go with the session variables.  In your Application.cfm, cfparam all of 
your form fields, with default values of "". 

Then in your form pages, just give each field a value of 
session.thisFormField (or in the case of checkboxes, only do 'checked' if 
the value is ""). 

charlie 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Get the mailserver that powers this list at http://www.coolfusion.com

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

Reply via email to