nl2br(). Translating \n to <p> would need str_replace() or some sort of reg
exp function. Two carriage returns will be interpreted as <br><br> which is
actually what html does with the <p> tag anyway.
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
> -----Original Message-----
> From: Joeri Vankelst [mailto:[EMAIL PROTECTED]]
> Sent: 25 June 2001 23:17
> To: [EMAIL PROTECTED]
> Subject: Enter to BR
>
>
> How can I get an Enter typed in a HTML textfield to be
> inerpreted as a BR or
> a P tag?
> Someone sugested I use the split() function, but I wouldn't
> know how...
>
> Joeri Vankelst
>
>
>
--
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]