How Very Odd


this observation, i'm not looking assistance.

i have reuseable form, made included file. general idea is:

<cfset some_variable="some value">
<cfoutput>
<cfinclude file form>

in form, if
<cfinput type="submit" value="#some_variable#">
then button labelled value of variable, expected.

but, if this:
<input type="submit" value="#some_variable#">
then button gets labelled string literal, #some_variable#.

i find odd.

it because first 1 cfinput , process cfml.

the other html element , not process cfml without putting
<cfoutput> tags around it, this:

<input type="submit" value="<cfoutput>#some_variable#</cfoutput>">

--
ken ford
adobe community expert - dreamweaver
fordwebs, llc
http://www.fordwebs.com


"dan bracuk" <webforumsuser@macromedia.com> wrote in message
news:fr3v5q$mfk$1@forums.macromedia.com...
> observation, i'm not looking assistance.
>
> have reuseable form, made included file. general idea
> is:
>
> <cfset some_variable="some value">
> <cfoutput>
> <cfinclude file form>
>
> in form, if
> <cfinput type="submit" value="#some_variable#">
> button labelled value of variable, expected.
>
> but, if this:
> <input type="submit" value="#some_variable#">
> button gets labelled string literal, #some_variable#.
>
> find odd.
>



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support