Barry,

Okay, check this code out:

http://code-bin.homedns.org/330

FYI - I got rid of your session variables - as I mentioned earlier, you do
not need them for a one page form.  All you need to do is 'default' the form
values at the top to whatever you want the 'default values' to be (like the
subject line is defaulted, and the form.all checkbox is defaulted.

Of course, I couldn't test the code, so let me know if you have any problems
with it.

Basically, with the session variables, you were making it more complex than
you needed to make it.  Remember the KISS principle... :)

Dave

-----Original Message-----
From: Barry Mcconaghey [mailto:[email protected]] 
Sent: Wednesday, July 15, 2009 10:44 AM
To: cf-newbie
Subject: Re: Session Variables


Hi Dave.

Here is the code:

http://code-bin.homedns.org/329

Barry

>Barry,
>
>This is difficult because I can't see all your code.  Please send your code
>for the form AND for the form handling code.  I don't think the url.all is
>needed based on what we've seen previously, but can't be sure.
>
>If it's too much to put here, put it at http://code-bin.homedns.org/ and
>send me the link to it.
>
>Dave
>
>Thanks Dave for you time.
>
>If I remove the <cfparaam name="url.all default=""> the form will not
>remember the checkbox if the captcha is worng.
>
>If I remove this <cfparam name="FORM.all" default=""> I will rec. an error
>message:
>
>Element ALL is undefined in FORM.
>
><cfinput type="checkbox"
>name="all"
>checked="#isDefined('form.all')#"> All 50 States 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4635
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to