Hey people,
I'm not sure why but, as stated in the subject, I am not
able to use attributes.formfieldname in my sql queries, I have to use
form.formfieldname. Is this a known phenom or is there a little something
extra I should be doing, my app works fine ofcourse but I hate to deviate
from the fusebox way of using "attributes". I am using attributes
throughout the application so they are working as per form2url specs. I am
also using the code from the book to reuse the form for edit,new and delete,
perhaps that is affecting things?
This works...
<cfquery name="updatepressrelease" datasource="#request.myDSN#">
update press
set
press_head = '#form.press_head#' ,
press_head2 = '#form.press_head2#' ,
press_body = '#form.press_body#'
where (index like '#pressindex#');
</cfquery>
This doesn't
<cfquery name="updatepressrelease" datasource="#request.myDSN#">
update press
set
press_head = '#attributes.press_head#' ,
press_head2 = '#attributes.press_head2#' ,
press_body = '#attributes.press_body#'
where (index like '#pressindex#');
</cfquery>
Shane Johnson
Web Production/Programming
Populuxe Digital Media
www.populuxe.com
[EMAIL PROTECTED]
(604) 714-2496
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists