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
Here is how i do it, and it works:
$tmp_desc = str_replace(\t, , str_replace(\n, , str_replace(\r,
, $desc)));
$desc = $tmp_desc;
\t for stipping TABs also
- Original Message -
From: Sam [EMAIL PROTECTED]
Subject: [PHP] Textarea returns causing havoc
Hi all,
into this:
Hi my
2 matches
Mail list logo