Re: [PHP] entering in text data and losing the \n
From: John Nichel (jnichel_at_by-tor.com)
Date: 11/30/03
- Next message: Chris Shiflett: "Re: [PHP] entering in text data and losing the \n"
- Previous message: Randy Johnson: "entering in text data and losing the \n"
- In reply to: Randy Johnson: "entering in text data and losing the \n"
- Next in thread: Chris Shiflett: "Re: [PHP] entering in text data and losing the \n"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Nov 2003 00:15:23 -0600 To: Randy Johnson <rjohnson@seasidepc.com>
Randy Johnson wrote:
> I have a form with a text area.
>
> When the user submits the data it is saved to a mysql database in a field of type text.
>
> When I extract the data from the database and display it in php it loses the line return and the data is all crammed together. Here is an example
>
> This is line 1
> This is line 2
> This is line 3
>
> Here is what it would be after I extracted it and displayed it to the screen
>
> This is line 1 This is line 2 This is line 3
Displayed to the screen, as in....browser window, or terminal?
> What do I need to do to get it to retain the line feeds?
>
> Thanks
>
> Randy
-- By-Tor.com It's all about the Rush http://www.by-tor.com
- Next message: Chris Shiflett: "Re: [PHP] entering in text data and losing the \n"
- Previous message: Randy Johnson: "entering in text data and losing the \n"
- In reply to: Randy Johnson: "entering in text data and losing the \n"
- Next in thread: Chris Shiflett: "Re: [PHP] entering in text data and losing the \n"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|