I don't know if this is the problem, but you definitely want to have a
"WHERE" clause on that update statement.
Sharon
At 11:35 AM 5/2/2000 -0400, Todd Ashworth wrote:
>I am trying to insert the contents of a <textarea> field into a database.
>It all seems really straight forward to me, but for some reason, I can't get
>it to work. It does everything except actually insert the data. I just
>don't get it. Anyone?
>
>----- snip -----
>
><form action="action_page.cfm" name="UpdateForm" method="post"
>enctype="multipart/form-data">
> <textarea name="txtTextArea" cols="60" rows="10"
>wrap="hard"><cfoutput>#My_Query.my_field#</cfoutput></textarea>
> <input type="Submit" name="Update_Button" value="Update">
><form>
>
>----- snip -----
>
><CFIF IsDefined('Form.txtTextArea')>
> <CFQUERY datasource=#Session.DSN# name="My_Update_Query">
> UPDATE my_table
> SET my_field = '#Form.txtTextArea#'
> </CFQUERY>
></CFIF>
>
>----- snip -----
>
>.Todd
>
>
>---------------------------------------------------------------------------
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.