Hi,
Hope someone can help with this output problem.
I have a textarea defined like this:
<textarea name="sub_cat_txt" cols="50" rows="5">
I insert into a MySQL table using this code
$sub_cat_txt = htmlspecialchars(stripslashes(trim($_POST['sub_cat_txt'])));
I entered test data with two line breaks (by using the Enter key) that looks like this:
Pro-Sock : Heavyweight 100% nylon sock as worn by professional players.
Super Pro-Sock : Heavyweight cotton and nylon sock with 30% extra stretch. High density cushioning protects toes, heel and ball of foot.
When I come to output the data I use this code
$sub_cat_txt = nl2br($myrowc['sub_cat_txt']);
and I get a > character at the point of the line break and the full stop has gone, it looks like this :
Pro-Sock : Heavyweight 100% nylon sock as worn by professional players>
Super Pro-Sock : Heavyweight cotton and nylon sock with 30% extra stretch. High density cushioning protects toes, heel and ball of foot.
am I missing doing something at insert or ouptut stage ?
Many thanks for any pointers.