Link to home
Start Free TrialLog in
Avatar of felix00
felix00

asked on

Coldfusion Dynamic Variables

<cfparam name="evaluate('m'&url.mid&'.'&url.bet)" default="0">

^the above doesn't work. pls tell me what does. thanks.
Avatar of felix00
felix00

ASKER

An error occurred while evaluating the expression:
"#evaluate('m'&url.mid&'.'&url.bet)#"
Error near line 3, column 17.
--------------------------------------------------------------------------------
An error has occurred while processing the expression:
   m43.Team_A
Error near line 1, column 1.
--------------------------------------------------------------------------------
Error resolving parameter M43.TEAM_A
Avatar of felix00

ASKER

My URL variable is:
publicpick_action.cfm?mid=43&bet=Team_A
ASKER CERTIFIED SOLUTION
Avatar of shooksm
shooksm

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
<cfif not isDefined('m'&url.mid&'.'&url.bet)>
      <cfset evaluate('m'&url.mid&'.'&url.bet &'=0')>
</cfif>