Hi,
I've been searching for a solution for this problem. Browsed so many forums and sites but nothing solved the exact issue I am having.
So I've decided to write my case here.
I am using a textarea in my form, a simple form that will send an email using php.
Following is the code
Code:
<textarea name="body" rows="9">
<? if (isset($posts['body'])){echo $posts['body'];}?>
</textarea>
But when the form is submitted textarea input loses the line breaks and instead shows ugly /r/n
It literally shows the \r\n? Something has escaped it prematurely or it is being stored improperly in storage. If it shows /r/n, then something has been incorrectly replaced.
If it shows \r\n and $posts represents a direct copy of $_POST, you have magic_quotes_gpc enabled.
So to figure out the problem, can you specify where the $posts variable is populated from? Oh and clarify as well if its /r/n or \r\n.
Hi,
I'm sorry i dont know much about coding terminology.
I am sending you a link to the website page in PM and also sending the codes there if thats okay.
Hi,
I'm sorry i dont know much about coding terminology.
I am sending you a link to the website page in PM and also sending the codes there if thats okay.
Thanks in advance.
Don't bother, that would be pointless. You can't retrieve script source from rendered output.