I need to use a query to set client variables equal to each field in the db table for a single record.
To set them with a list of form fields I use this code:
<cfloop index="element" list="form.#fieldnames#">
<cfset "client.#element#"=evaluate("form.#element#"
>
</cfloop>
Is there something like query.#fieldnames# that I need to use to create the list? Thanks for your help.
To set them with a list of form fields I use this code:
<cfloop index="element" list="form.#fieldnames#">
<cfset "client.#element#"=evaluate("form.#element#"

</cfloop>
Is there something like query.#fieldnames# that I need to use to create the list? Thanks for your help.