Forum Moderators: coopster
I have managed to eliminte those ugly \r\n in the text but not to do a line break as intented the user.
If I do this:
$comments = str_replace("\\r\\n", " ", $comments);
I receive it like this:
testing this is a new line
That is a lot better, but do not have line break.
If I do this:
$comments = str_replace("\\r\\n", "\\n", $comments);
it write the \n and I get this result:
testing \nthis is a new line
Is there some way to do line break in plain text in php? if not maybe in Javascript?
$mail->Body = "Name: $name \nTelephone: $tel \nCountry: $country \nEmail: $repeat_email \nProperty: $property \nArrival: $arrival \nDeparture: $departure \nAdults: $adults \nChildren: $children \nComments: $comments\n";
[edited by: coopster at 2:18 pm (utc) on June 20, 2008]
[edit reason] added link to message referred to in JavaScript Forum [/edit]