if the lines were entered in a TEXTAREA then they will have linefeeds but the web browser ignores them of course :)
php3 has a function called nl2br($stringvar)
which replaces every nl "\n" with "<BR>" so that they render correctly in a web browser.
you could use ereg_replace() if you want to do more complicated substitutions :)