Forum Moderators: coopster

Message Too Old, No Replies

leave untrimmed

function?

         

c0nsur

4:20 am on Aug 10, 2003 (gmt 0)

10+ Year Member



hi guys :)

does anyone know how to put some text in mysql from a text area via php

example:

blablalbla

-blehblehbleh

i wanna leave those space and \n \r over there

hope this is clear :P

bcolflesh

5:31 am on Aug 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's inserted that way by default - try using nl2br:

php.net/manual/en/function.nl2br.php

on the output when you want to dispay it on your pages.

vincevincevince

10:48 am on Aug 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



pass it through htmlentities() and nl2br() first