No! Just change your isdefined:
<cfif isDefined("form.mytest")>
If you need mytest to be dynamic (ie, its a pointer to the field name),
then you would use
<cfif isDefined("form.#mytest#")>
=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire
Email : [EMAIL PROTECTED]
WWW : www.camdenfamily.com/morpheus
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Randell B Adkins [mailto:AdkinsR@;GAO.GOV]
> Sent: Friday, October 25, 2002 9:13 AM
> To: CF-Talk
> Subject: Re: IsDefined() bug?
>
>
> Use the evaluate function
>
> >>> [EMAIL PROTECTED] 10/25/02 09:30AM >>>
> Is this not possible?
>
> <cfset form.mytest = 2>
> <cfdump var="#FORM#">
> <cfoutput>#FORM["mytest"]#</cfoutput>
> <cfif isdefined('FORM["mytest"]')>
> Yup
> </cfif>
>
> Error:
> Parameter 1 of function IsDefined, which is now
> "FORM["mytest"]", must be a syntactically valid variable
> name.
>
> --
> ============================================================
> Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ |
> Team Macromedia Volunteer for ColdFusion |
> http://www.macromedia.com/support/forums/team_macromedia/ |
> http://www.flashCFM.com/ - webRat (Moderator) |
> http://www.ultrashock.com/ - webRat (Back-end Moderator) |
> Speakeasy DSL - http://www.speakeasy.net/refer/18280 |
> ============================================================
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm