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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to