RE: [PHP] Forms and viewing Text Area

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 09 December 2004 22:41, Ben C wrote: I have a form which has a text box which then stores in MySQL. When I write seperate paragraphs and try and then view what I wrote it

RE: [PHP] Forms and viewing Text Area

2004-12-10 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] 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. I just went through this issue the other day, what I found worked for me was:

RE: [PHP] Forms and viewing Text Area

2004-12-10 Thread Ford, Mike
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 [EMAIL PROTECTED] wrote: echo nl2br(htmlspecialchars($text)) is my usual mantra for this. nl2br will

Re: [PHP] Forms and viewing Text Area

2004-12-09 Thread Marek Kilimajer
Ben C wrote: I have a form which has a text box which then stores in MySQL. When I write seperate paragraphs and try and then view what I wrote it lumps it all together in one paragraph when I echo. I am sure I am doing something simply wrong. Anyone have any ideas? put pre tag around it. and

Re: [PHP] Forms and viewing Text Area

2004-12-09 Thread John Holmes
Ben C wrote: I have a form which has a text box which then stores in MySQL. When I write seperate paragraphs and try and then view what I wrote it lumps it all together in one paragraph when I echo. I am sure I am doing something simply wrong. Anyone have any ideas? The line breaks are