[PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Raymond Lilleodegard
Hi! I have made a guestbook to my website driven by php and mysql. But I don't know how to get the text as it is written in the textfield before it is sent to mysql. So is it possible to save the hits on enter in the database? Best regards Raymond -- PHP General Mailing List

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Tom Woody
While I am not exactly sure of everything you are asking I think I had a similar problem... You need to convert the \r to \n before you put it into the DB. On Mon, 28 Oct 2002 19:30:15 +0100 Raymond Lilleodegard [EMAIL PROTECTED] wrote: Hi! I have made a guestbook to my website driven by

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Chris Shiflett
Or maybe you are looking for the nl2br() function ... Tom Woody wrote: While I am not exactly sure of everything you are asking I think I had a similar problem... You need to convert the \r to \n before you put it into the DB. On Mon, 28 Oct 2002 19:30:15 +0100 Raymond Lilleodegard [EMAIL

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread 1LT John W. Holmes
www.php.net/nl2br ---John Holmes... - Original Message - From: Tom Woody [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 28, 2002 1:26 PM Subject: Re: [PHP] How to get linefeed from textfields registered in mysql? While I am not exactly sure of everything you are asking

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Raymond Lilleodegard
Ok, thanks a lot! Thats what I thougt. Regards Raymond Tom Woody [EMAIL PROTECTED] wrote in message news:20021028122633.34f2979e.woody;nfri.com... While I am not exactly sure of everything you are asking I think I had a similar problem... You need to convert the \r to \n before you put it