bfulda
01-16-2007, 10:55 AM
Hey all,
When I use this code (below) all of the text is formated correctly:
echo '<br />Description: <br />';
echo nl2br(stripslashes($row['description']));
echo '</p><br />';
But when I want to put the text into a textbox with this:
echo '<br />Description: <br />';
echo nl2br('<textarea rows="15" cols="80" "12">');
echo nl2br(stripslashes($row['description']));
echo nl2br('</textarea>');
echo '</p><br />';
I get output that shows all of <br />'s like so:
There is no patch. The alert says there is no workaround at this time.<br />
<br />
Glenn <br />
<br />
Any ideas on how to overcome this?
Thanks!!
brad dot fulda at logsa dot army dot mil
When I use this code (below) all of the text is formated correctly:
echo '<br />Description: <br />';
echo nl2br(stripslashes($row['description']));
echo '</p><br />';
But when I want to put the text into a textbox with this:
echo '<br />Description: <br />';
echo nl2br('<textarea rows="15" cols="80" "12">');
echo nl2br(stripslashes($row['description']));
echo nl2br('</textarea>');
echo '</p><br />';
I get output that shows all of <br />'s like so:
There is no patch. The alert says there is no workaround at this time.<br />
<br />
Glenn <br />
<br />
Any ideas on how to overcome this?
Thanks!!
brad dot fulda at logsa dot army dot mil