Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Sims
>> i keep the string intact as well, for that exact reason, when you want >> to edit dynamically, i dont want all sorts of html tags in my >> textarea. So, the solution i found works, is to use the php funtion >> nl2br(). use that when displaying the info in html., that way you dont >> actually ch

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Sims
> i keep the string intact as well, for that exact reason, when you want > to edit dynamically, i dont want all sorts of html tags in my > textarea. So, the solution i found works, is to use the php funtion > nl2br(). use that when displaying the info in html., that way you dont > actually change

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Jason Davidson
i keep the string intact as well, for that exact reason, when you want to edit dynamically, i dont want all sorts of html tags in my textarea. So, the solution i found works, is to use the php funtion nl2br(). use that when displaying the info in html., that way you dont actually change the origin

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Enda Nagle - Lists
I usually leave the string intact in the database because if you need to show it in an admin area or something, you don¹t need to convert it back again before populating the text area. Suppose it just comes down to personal preference... Or is there a specific benefit to doing it this way? Regard

Re: [PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Sims
> Hi, > > If I have a html textarea for inputting text into a database text field > how can I keep the formatting of the entered text? > > i.e. on the html textarea if the user enters carriage returns i.e. a new > paragraph I want that to go into the database then when I retrieve it and > display i

[PHP] html text area and mysql text fields

2004-07-27 Thread Matthew Oatham
Hi, If I have a html textarea for inputting text into a database text field how can I keep the formatting of the entered text? i.e. on the html textarea if the user enters carriage returns i.e. a new paragraph I want that to go into the database then when I retrieve it and display it on a norma