It seems this thread is going nowhere, so I thought I'd lend some
input.
The point of reusing forms here at HMweb is:
adding a widget
editing a widget
re-displaying a form for a widget for one reason or another (such as bad
input)
I should really take the time to look at cf_reuseform, but haven't yet.
At the top of our forms (you could also CF_INCLUDE something), we have
a little snippet like this:
<cfset fieldlist = "name,number,email">
<cfif isQuery("Whatever")>
<cfloop list="#fieldlist#" index="counter">
<cfset temp = setvariable("#counter#", "#evaluate("Whatever." &
"#counter#")#")>
</cfloop>
<cfelse>
<cfloop list="#fieldlist#" index="counter">
<cfparam name="#counter#" default="">
</cfloop>
</cfif>
Then, in the form, all values are set to #name#, #number#, #email#, etc.
For checkboxes and radio buttons, we do something like:
<INPUT TYPE="radio" NAME="Rookie" VALUE="1" <CFIF Rookie EQ
"1">CHECKED</CFIF>>Yes
<INPUT TYPE="radio" NAME="Rookie" VALUE="0" <CFIF Rookie EQ "0" OR Rookie EQ
"">CHECKED</CFIF>>No
Hope that helps.
__
Erik Voldengen 6740 N Oracle Road, Ste 100
Lead Developer Tucson, Arizona 85704
HMweb 520-742-2611 ext. 111
www.HMweb.com
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.