<!--- This example shows SetVariable --->

<HTML>

<HEAD>
<TITLE>
SetVariable Example
</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">

<H3>SetVariable Example</H3>
<P>This file has been disabled for online viewing. Please use your copy of ColdFusion to view this example. 
<!--- 
<CFIF IsDefined("form.myVariable")>

<!--- strip out url, client., cgi., session., caller. --->
<!--- This example only lets you set form variables --->

<CFSET myName = ReplaceList(form.myVariable, "url,client,cgi,session,caller", "form,form,form,form,form")>


<CFSET temp = SetVariable(myName, form.myValue)>

<CFSET varName = myName>
<CFSET varNameValue = Evaluate(myName)>

<CFOUTPUT>
	<P>Your variable, #varName#
	<P>The value of #varName# is #varNameValue#
</CFOUTPUT>

</CFIF>

<FORM ACTION="setvariable.cfm" METHOD="POST">
<P>Your variable name to set:
<BR><INPUT TYPE="Text" NAME="myVariable" VALUE="form.something">
<P>The value to set it to:
<BR><INPUT TYPE="Text" NAME="myValue" VALUE="Test">

<INPUT TYPE="Submit" NAME="show me the result">
</FORM>

 --->
</BODY>

</HTML>       
