I have a form that is sending as mail in php. i wanna define ENTER key in textarea content as breakline while sending it. when i type something like this :
hi
how are you?
in the inbox it shows as :
hi how are you?
please help me to fix it!
my HTML code :
<form action="mail.php" method="post">
<input type="text" name="from">
<input type="text" name="to">
<textarea name="content" rows="4" cols="40"></textarea>
</form>
my PHP code :
$to = $_POST['to'] ;
$subject = $_POST['from'];
$message = $_POST['content'];
mail($to, $subject, $message, //$headers);