I have a textarea on a form whose value is stored in a database. I want to
display the contents as an unordered list. At the moment I am using * to
start the line and ; to end the line in the textarea and then replacing
these characters like so:
<ul>
<?php
$features=$myrow["features"];
$search = array("*", ";");
$replace =array("\t\t<li>", "</li>\n");
$list=str_replace($search,$replace,$features);
print "$list";
?>
</ul>
Is it possible to do this without the extra characters, say by just putting
the list items on separate lines in the textarea?
--
Geoff Berrow