Or better yet, use nl2br() :

  http://www.php.net/manual/en/function.nl2br.php

Regarding the html WRAP attribute, this little tutorial looks 
interesting :

  http://www.web-wise-wizard.com/html-tutorials/
                         html-form-forms-textarea-wrap.html

(note: it's one link, had to split up as it's so long!)

Regards,
Philip


On Sat, 7 Apr 2001, shaun wrote:

> one thing that would help is to str_replace("\n", "<br>");
> 
> I think textarea has a wrap attribute doesn't it?
> 
> 
> 
> On Wednesday 04 April 2001 13:20, Chris Anderson wrote:
> > I've been having large problems with this so I decided to ask you guys(and
> > gals ^_^). I have a textarea where you can type your text and it is saved
> > to a file. Then another script includes that. Unfortunately I can't find a
> > way for the textarea to wrap the text, or make it so it shows it they way
> > they typed it in. Any help would be appreciated
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to