Hello.
I’m creating this little script where you can add, delete and edit a product list.
When it comes to editing the product. I show the fields already filled out, so the user just edits whatever he wants. Now, I try to put line breaks between the TEXTAREA tag using this:
$row["productdescription"] = str_replace("
", "<br/>", $row["productdescription"]);
IT OUTPUTS THIS:
Color: Green
<br/> Width: 3ft
<br/> Height: 1ft
Of course, I dont want the tags to actually show, I just want to see the space between the two lines.
Please help,
I have been trying for a good while now and nothing seems to work. Thanks in advance,
Leo :hair: