Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: textarea field problem


Message #1 by "Richard D. Williams" <richard@a...> on Thu, 21 Nov 2002 11:38:32 -0600
Yes Mark, that's exactly what I wanted.

Thanks,
Richard

Mark Carruth wrote:

>Richard,
>
>What you want is the:
>	
>	nl2br($string) : Convert New Lines (\n, \r) to <br>
>
>Regards,
> 
>------------
>Mark Carruth
> 
>
>-----Original Message-----
>From: Richard D. Williams [mailto:richard@a...] 
>Sent: 21 November 2002 17:39
>To: professional php
>Subject: [pro_php] textarea field problem
>
>
>Hello to All,
>
>I know I have done this before, but I can not locate the code. Maybe 
>someone can refresh my old memory.
>If a textarea has carriage returns in it, how can I display the data in 
>a table and still have the carriage returns?
>I have tried this;    $string2 = str_replace('\r\n','<br>,',$string1);, 
>but it did not work.
>Any suggestions?
>
>Richard D. Williams
>
>
>
>
>
>
>
>
>
>  
>



  Return to Index