Okay, I am working on a form to add poetry to a page. So 3 variables, $title, $poem, $author. Using what I learned on on making links go to a text doc and then to the page, the form is designed in the same way. And while it does work and the poem goes on the page, it comes across like this...
title
line 1, line 2. line 3, line 4.
-author
That's not what I wanted it to do. I want it to put a <br> where each return carriage is. From what I understand the nl2br() function should allow me to do this. However, I can't figure out how to get it to work. Supposedly it is to go on the page that will be displaying the actual poetry. Not in either of the php form documents (poetryadder.php and poetrywriter.php). And not in the actual poems.php text document that is housing the list of poetry.
This is the code I have in the poetry.php display page that users actually are supposed to see.
<?PHP
include ("admin/poems.php");
$poem= nl2br($poem);
echo $poem;
?>
The poem shows up, but as I said, its not breaking between lines. What have I done wrong?