[thelist] CF Textarea problem....

rudy limeback r937 at interlog.com
Mon May 8 17:47:50 2000


><CFIF FORM.REQ_JUST Is "">
>
> Error resolving parameter FORM.REQ_JUST
>
> This problem is very likely due to the fact that you
> have misspelled the form field name.

hi katie

not sure if your problem actually relates to single quotes, double quotes
or the percent sign as you suggested

the error message is a bit misleading, too

maybe the browser isn't forwarding the REQ_JUST field to the action page at
all, so that it remains undefined

you can avoid this as follows --

  <cfparam  name="FORM.REQ_JUST" default="">

this way it's defined, with an initial value of an empty string, so your
CFIF later should then work

there's also the IsDefined function, but you have to use that inside a
CFIF, i prefer just to declare the fields i want to use at the top of the
listing using CFPARAMs, it makes for better documentation in my view

<tip>
don't forget to use client-side validation for form fields that will be
validated on the server -- a round trip to the server and back over a
congested internet just to learn that a form field is mandatory does not a
happy site visitor make, and the annoyance is exponential if this happens
for every mandatory field...
</tip>

_____________
rudy limeback
http://r937.com/
http://evolt.org/