|
Posted by Andrew @ Rockface on 07/14/05 17:11
In news:hduBe.3456$vz5.2874@newsfe4-win.ntli.net,
Robert Frost-Bridges <web@brightonfixedodds.net> wrote:
> I would actually like to find a way for him to insert paragraphs/line
> breaks, as each entry is currently just a single block of text, but I
> suspect this will involve someting other than a <textarea> for input
> and I've not really looked in to how this would be done yet. At the
> moment I would have to recreate all the above again and add it to the
> page where I wanted the new paragraph.
Try nl2br(). It converts newlines to <br>. Even if it's not exactly what
you're looking for, the user comments will help you code your own nl2p()
type function.
http://uk2.php.net/manual/en/function.nl2br.php
--
Andrew @ Rockface
np: Kyuss - 100 Degrees
www.rockface-records.co.uk
Navigation:
[Reply to this message]
|