If it would even work (without undefined var errors when no record was found) it's an all around bad idea for a few different reasons.
..:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: Aaron Rouse [mailto:[EMAIL PROTECTED] Sent: Thursday, November 17, 2005 4:22 PM To: CF-Talk Subject: Re: Cfparam question If you did want the value to be that of what is in the database. Why not just put it in the html tags, when the query returned a zero record count you would get blank values put in so an empty form. When it returned the record then you get what was populated/inserted. On 11/17/05, Bobby Hartsfield <[EMAIL PROTECTED]> wrote: > > Had to do it... > > <cfloop index="field" list="#getThis.columnlist#"> > <cfparam name="form.#field#" default="#getThis[field]#"> > </cfloop> > > that's only if you want the values from the database to be the default > values of the fields though. Just use default="" if that's not what you're > looking to do. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224573 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

