you're trying to get around a valid error :)
CF variables cannot start with a numeric character and therefore you
are dealing with syntactically invalid variable names.
there are workarounds tho. <cfif isDefined("form['0806']")> might work.
I know that array notation allows you to get away with more than dot
notation does.
might be a better idea to revisit your form and see if you can preface
the field names with an alpha character or an underscore.
On 11/15/06, Andrew Peterson <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've got a form with field names that begin with a number. On the action
> page, if I check for its existence - cfif isdefined("form.0806") - it tells
> me that Parameter 1 of function IsDefined, which is now "form.0806", must be
> a syntactically valid variable name. Does anyone know of any workaround for
> this? Can I put an evaluate in there or something? I'm looking for something
> more elegant than looping through form fields and preceeding each field name
> with a char.
>
> Thank you in advance.
>
> Sincerely,
> Andrew
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260518
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4