• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

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