Question
<form> with CF expression
Hello to ALL!!!
I'm going to use <form> in my CF application
For instance, if I type:
<cfscript>
myvar="hello";
</cfscript>
<form>
<input type="text" value="#myvar#">
</form>
I have to use <cfoutput> so, the right code will be:
<cfoutput>
<form>
<input type="text" value="#myvar#">
</form>
</cfoutput>
In other words, I'd like to say, that if I want to use CF expressions inside <form>, I'd ALWAYS have to insert my form inside <cfuotput> tag, am I right???
The question arises, because I've read some "best practice" with some optimization ideas: don't use CFForm or don't use CFSET or CFOUTPUT.
Thanks for your answers!!!
I'm going to use <form> in my CF application
For instance, if I type:
<cfscript>
myvar="hello";
</cfscript>
<form>
<input type="text" value="#myvar#">
</form>
I have to use <cfoutput> so, the right code will be:
<cfoutput>
<form>
<input type="text" value="#myvar#">
</form>
</cfoutput>
In other words, I'd like to say, that if I want to use CF expressions inside <form>, I'd ALWAYS have to insert my form inside <cfuotput> tag, am I right???
The question arises, because I've read some "best practice" with some optimization ideas: don't use CFForm or don't use CFSET or CFOUTPUT.
Thanks for your answers!!!
