PHP and Textarea

laserlights2000

[H]ard|Gawd
Joined
Jun 9, 2002
Messages
1,162
Hello all,

Just a quick, and easy question for you experienced people out there.

I have a php script that takes the form input and throws it into a MySQL database from a 'textarea'

Now, the question I have is how to spit it all out again, formatted. Linebreaks and everything.

Even before I pass it into the database, echo and printf don't seem to do it... am I just missing a php function call?

Thanks.
 
laserlights2000 said:
Nevermind.

I got it. For future reference, call nl2br();
In case you're not doing it now, also check out mysql_escape_string and associated functions to prevent sql injection attacks.
 
Back
Top