Link to home
Start Free TrialLog in
Avatar of gnosticgnowledge
gnosticgnowledge

asked on

How do it get this to work? <cfif parameterexists(evaluate(test)) is true>

<cfif parameterexists(evaluate(test)) is true>


test contains the value (form.126).  Any help would be da bomb.
Avatar of danrosenthal
danrosenthal

You would do it like this...

<cfif ISDEFINED("#test#")>
      It is defined
</cfif>

BUT, "126" is not a valid variable name and your code will throw an error. Variable names CANNOT start with numbers.
Avatar of gnosticgnowledge

ASKER

form variables cannot be numbers? are you sure?

nope.  I made the contents of test =form.x126
gnostic, you are correct (in your first post).

Here is a way to do it:
<CFSET test = "form[""126""]">

<CFIF ISDEFINED("#evaluate(test)#")>
      It is defined
</cfif>
ASKER CERTIFIED SOLUTION
Avatar of danrosenthal
danrosenthal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Very clever, nice job indeed. Hats off to you.  Not only are you da bomb you are a true master.  

cheers
Thanks!

Dan "Da Bomb" Rosenthal