Wally Kolcz wrote:
> Why isn't this working? It works fine pulling it for
text on the document,
> but it wont register for the hidden variable.
>
> I tried:
> <input name="rotty" type="hidden" id="rotty"
> value="<cfoutput>#url.name#</cfoutput>"
/>
> and
> <input name="rotty" type="hidden" id="rotty"
value="#url.name#" />
>
>
> Help.
>
<cfoutput><input name="rotty" type="hidden"
id="rotty"
value="#url.name#" /></cfoutput>
Are you absolutely sure url.name has a value at this time?
Wally Kolcz wrote:
> Yes, I also use that variable in text on the page. It
appears fine.
>
>
Is anything setting or clearing the value after it is output?
If you
look at the source does the hidden field value property have
anything in
it? A bit of code might help further diagnosis.
The second one should be <cfoutput><input
name="rotty" type="hidden" id="rotty" value="#url.name#"
/></cfoutput>. Make sure url.name exists and that there
are no nested cfoutput tags, that is, no cfoutput tag within a
cfoutput tag.