gnosticgnowledge
asked on
How do it get this to work? <cfif parameterexists(evaluate(test)) is true>
<cfif parameterexists(evaluate(t est)) is true>
test contains the value (form.126). Any help would be da bomb.
test contains the value (form.126). Any help would be da bomb.
ASKER
form variables cannot be numbers? are you sure?
ASKER
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>
Here is a way to do it:
<CFSET test = "form[""126""]">
<CFIF ISDEFINED("#evaluate(test)
It is defined
</cfif>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Very clever, nice job indeed. Hats off to you. Not only are you da bomb you are a true master.
cheers
cheers
Thanks!
Dan "Da Bomb" Rosenthal
Dan "Da Bomb" Rosenthal
<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.