Not sure if you need to implement it in Javascript or CF. Here's both versions:
<!--- CF ---> <cfset form.foo = Replace( form.foo, Chr(10), " ", "all" ) /> <!--- Javascript ---> document.forms.formName.foo.value = document.forms.formName.foo.value.replace(/\n/, " "); //note that this is using a regular expression (delimited by the / slashes) You could put the javascript snippet in a function that gets called in the textarea's onchange attribute, or maybe the form's onsubmit attribute...whatever you need to do. Good luck Mike Mertsock ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com

