Hello,
I have a form page with input boxes. What I would like to do
sum the values in the input boxes in the same page. here is the a sample code.
<cfform name="aa" action="update.cfm">
<input type="text" name="cc" value="0">
<input type="text" name="bb" value="0">
<input type="text" name="dd" value="0">
<input type="text" name="ee" value="0">
<cfset total=#cc#+#bb#+#dd#+#ee#>
</cfform
Can I do something like this.
cfset can be out of form.
Thanks for help
I have a form page with input boxes. What I would like to do
sum the values in the input boxes in the same page. here is the a sample code.
<cfform name="aa" action="update.cfm">
<input type="text" name="cc" value="0">
<input type="text" name="bb" value="0">
<input type="text" name="dd" value="0">
<input type="text" name="ee" value="0">
<cfset total=#cc#+#bb#+#dd#+#ee#>
</cfform
Can I do something like this.
cfset can be out of form.
Thanks for help