Re: How to format memo text

From: Date: Fri, 03 Nov 2000 06:22:19 +0000
Subject: Re: How to format memo text
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23526@lists.php.net to get a copy of this message
On Fri, 03 Nov 2000, GMansky wrote: > I have a memo text field in my database. When I use 'Echo' command, the > content of the memo field is sent continuously. How could I break it down > so it appears as it was entered, with CR/LF? > > Thanks, > George It's not actually sent continuously, browsers don't noramlly recognise white space (tabs, new lines and multiple spaces). See nl2br to cause line breaks to appear in the browser. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#23526) next »