RE: Forms and viewing Text Area

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm



On 10 December 2004 11:30, Stuart Felenstein wrote:

> --- "Ford, Mike" <M.Ford@xxxxxxxxxxxxxx> wrote:
> 
> > echo nl2br(htmlspecialchars($text)) is my usual
> > mantra for this.
> > 
> nl2br will give you back the correct formatting, but
> will leave <br/>'s in the output.

OK, yes, a case of engage brain before operating keyboard: in a <textarea>,
that may be the case; if you're just sending it out as part of straight
HTML, my mantra is right!

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: m.ford@xxxxxxxxxxxxxx
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux