I have a textarea in which the user enters his data. I want to make the PHP code leave lines at places where the user has. Suppose the user enters -
My name is Harry.
I live in LA.
The out put will be
My name is Harry.I live in LA.
Please tell me the function/command we use to solve this problem(I think its a PHP problem)
Thanks in advance.
HTML Code -
<textarea rows='1' cols='50' id='p-text' class='p-textarea' placeholder = 'Write something about yourself here..'> </textarea>
I will output this in a tag, not a textarea.
@zrvan-
Output on var_dump($_GET['t'); is
string(31) "My name is Harry. I live in LA."
`) – zrvan Jan 04 '12 at 15:15