[thelist] Cold Fusion: error message reported for a form's checkbox item - HTML4.01 Trans

.jeff jeff at members.evolt.org
Tue Oct 29 13:04:13 CST 2002


sharon,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Sharon F. Malone
>
> A prospective buyer emailed a client of mine with the
> following error message:
>
> "I tried to use your online form, but it kept returning
> the following error:
>
> Error Diagnostic InformationAn error occurred while
> evaluating the expression: #NoWords#Error near line 48,
> column 6."
>
> However, when I fill out the form online and submit it,
> I get no error message.
>
> In the form, I have:
> <input type="checkbox" name="NoWords" value="nowords">
>
> In the Cold Fusion file I have:
> NA: #NoWords#
>
> In the form, should the value be value="ON"?
>
> Can't see anything wrong in the Cold Fusion code.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

i'm guessing you're checking the box and they're not.  if you haven't
<cfparam>'ed a form.nowords or a nowords variable on the processing template
then they'll get an error because a non-checked checkbox doesn't send any
value.  it only sends a value if it's checked.

without seeing the code on the processing page it'd be hard to guess what
else could be causing the problem.

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list