Soldato
- Joined
- 12 Feb 2006
- Posts
- 17,627
- Location
- Surrey
i have a textarea that i use mysql_real_escape_string on and then do a load of stuff on all the fields like checking isset, numeric, etc.
now when there is a problem i will post back with the problem and echo the values that were submitted into the correct fields.
trouble i'm having is that as the textarea is escaped any new lines i have get turned into \r\n and this is then displayed to the user.
i have searched but can't find the solution so coming to you guys, which I'm sure you will post 2 lines of code which will fix the problem.
so what is it that i'm doing wrong?
thanks
now when there is a problem i will post back with the problem and echo the values that were submitted into the correct fields.
trouble i'm having is that as the textarea is escaped any new lines i have get turned into \r\n and this is then displayed to the user.
i have searched but can't find the solution so coming to you guys, which I'm sure you will post 2 lines of code which will fix the problem.
so what is it that i'm doing wrong?
thanks