By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,910 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,910 IT Pros & Developers. It's quick & easy.

Removing carriage returns from <textarea></textarea> input

P: n/a
Hiya,

I have a form with a <textarea></textarea> to receive user input.

This input is then stored in a database and sent by fax...

I need to be able to remove the carriage returns (enter key... vbcrlf...)
from the input so that somebody doesn't do something like fill the textarea
with 100s of keypresses of the enter key and end up spitting out tonnes of
blank pages on the fax machine

thanks,

Clint
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
strInput = Replace(strInput, vbCrLf, "")

Cheers
Ken
"Augustus" <Im*************@Rome.It> wrote in message
news:bj************@ID-97594.news.uni-berlin.de...
: Hiya,
:
: I have a form with a <textarea></textarea> to receive user input.
:
: This input is then stored in a database and sent by fax...
:
: I need to be able to remove the carriage returns (enter key... vbcrlf...)
: from the input so that somebody doesn't do something like fill the
textarea
: with 100s of keypresses of the enter key and end up spitting out tonnes of
: blank pages on the fax machine
:
: thanks,
:
: Clint
:
:
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.