Textarea returns causing havoc
| From: | Sam | Date: | Wed, 09 May 2001 10:38:21 +0000 |
| Subject: | Textarea returns causing havoc | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-52062@lists.php.net to get a copy of this message | ||
Hi all,
I have a web form in which users can type their comments into a text area
field.
This is ok apart from when the users hit a return.
As this creates a new line...
Is there anyway in which I can get rid of this:-
Hi
My name is
Sam Rose
into this:
Hi my name is Sam Rose
I have tried
nl2br()
str_replace()
but these do not seem to get rid of the returns.
What can I do?
Thanks in advance.
Also could you please reply to me and the list as I am only on the digest
list,
Sam Rose