I am a CF newbie, but fairly well versed in other things like PHP. I tried to use isDefined to tell me whether or not a variable had been declared. If it had not yet been declared, I wanted to give it a value, otherwise, I wanted to use the value that was called by a link which led to the page.
It seems frustrating to me that I can't do this, so there must be some other way to think of it.
Thanks in advance for any assistance.
MrsBean
It seems frustrating to me that I can't do this, so there must be some other way to think of it.
Code:
<cfif isDefined("#imv#")>
<cfelse>
<cfset #imv# = 0>
</cfif>
<tr><td valign="top"><a href="index.cfm?template=ec_category_edit_1&form_cat_id=1&imv=1"><img src="images/arrow.gif" align="left" class="arrowcss" /></a></td>
<td valign="top">Image Map(?) </td>
<td>
<cfif #imv# EQ 1>
<textarea name="imageMap" cols="50" rows="5" id="imageMap"></textarea>
</cfif>
</td></tr>
Thanks in advance for any assistance.
MrsBean