469,626 Members | 1,043 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

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

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
1 4531
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.

Similar topics

5 posts views Thread by Matt | last post: by
4 posts views Thread by Dennis Allen | last post: by
4 posts views Thread by Chamomile | last post: by
11 posts views Thread by Les Paul | last post: by
6 posts views Thread by Tony | last post: by
7 posts views Thread by =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.