if i understand you correctly:
you have a form where a user can type some text to send as
sms;
lat's say that textarea in the form is named "smstext";
in the form's action page (in the code that processes form
submission)
you will <cfset texttosend = REReplace(form.smstext,
"(Chr(13)|Chr(10))", " ", "ALL")>
so now the sms text without line feeds or carriage returns is
stored in
the "texttosend" variable.
if you need to store that in the session scope, just do
<cfset
session.texttosend = REReplace(form.smstext,
"(Chr(13)|Chr(10))", " ",
"ALL")> instead.
you can use whatever valid variable name you want instead of
"texttosend".
don't forget to use your actual textarea's name instead of
"smstext".
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com