Double space from textarea
Posted: Fri Aug 21, 2009 3:40 pm
I'm sure there's a simple solution to this. I have a PHP page with the following (edited for brevity) ...
The $bodyFromEmail is capture in PHP using
When I send a test to myself, it comes across as double spaced in my email client. What can I do to fix this?
Thanks in advance -
sleepydad
Code: Select all
$bodyFromEmail=$_POST['message'];
$bodyFromEmail=stripslashes($bodyFromEmail);
$bodyFromEmail=str_replace("\r", "\n", $bodyFromEmail);
mail ($to, $subject, $bodyFromEmail, $headers);
Code: Select all
echo "<textarea name='message' cols='50' rows='10' wrap='virtual'></textarea>";
Thanks in advance -
sleepydad