Re: extra breaks in sent out emails

From: Date: Sun, 07 Mar 2004 07:02:53 +0000
Subject: Re: extra breaks in sent out emails
Groups: php.general 
Request: Send a blank email to php-general+get-179687@lists.php.net to get a copy of this message
on Page One <form action="pagetwo.php" method="post">
       <textarea cols="100" rows="40" name="email_body">
       a
       b
       </textarea><br><br>
</form> On Page Two: $to = $row['email_address']; $body = stripslashes(trim($_POST['email_body'])); mail($to, $subject, $body, $headers); What I really don't understand is why there are any line breaks at all, because the trim is supposed to take out all \r & \n 's. Is there another type of line break? Best Regards, Scott Taylor

« previous php.general (#179687) next »