RE: Enter to BR

From: Date: Tue, 26 Jun 2001 07:45:54 +0000
Subject: RE: Enter to BR
Groups: php.general 
Request: Send a blank email to php-general+get-55215@lists.php.net to get a copy of this message
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:joeri.vankelst.nospam@softhome.net] > Sent: 25 June 2001 23:17 > To: php-general@lists.php.net > 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 > > >

« previous php.general (#55215) next »