>I've done something like that. My method was to have a hidden form field
>with the original data and compare it to the submitted data.
>
><input type="text" name="userName" value="#variables.userName#">
><input type="hidden" name="userName_orig" value="#variables.userName#">
>
>
><!--- Action page --->
><cfif form.userName neq form.userName_orig>
>       <!--- Add username to data to update --->
>       ...
></cfif> 
>
>
>Of course, I'd loop on form.fieldnames (or a custom list of field names
>to check) so I wouldn't have to repeat the same code for every field.
>
>Another option might be to use JavaScript to disable the unchanged
>fields. Disabled fields aren't in the FORM scope of the action page.
>

Thanks for a reply. this makes perfect sense, thanks very much. its been 
bugging me for hours, thanks :)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254095
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to