Possible Duplicate:
How to save user-entered line breaks from a TEXTAREA to a database?
When I press an ENTER KEY in a textarea it goes to newline. But when I receive this value from action page it converts to a white space. I want to receive ENTER KEY character as a newline from action page as not a white space. Sample code : this is the HTML code
<form action="go.php" method="POST">
<textarea name="aa" cols="10" rows="10"></textarea>
<form>
Her is the go.php code :
<?php
$txt=$_POST['aa'];
echo $txt;
?>
If I input like "this is me(PRESS ENTER KEY)this is he(PRESS ENTER KEY)". I want to the output as like "this is me(newline)this is he(newline)". But I am getting from go.php like "this is me this is he". Here is no any newline but white space. Please anyone help me. Why it is happen.