Forum Moderators: coopster

Message Too Old, No Replies

Formatting forms

         

onoff

3:25 pm on Sep 26, 2005 (gmt 0)

10+ Year Member



Hi,

I am building a guestbook usin PHP/Mysql and I'm wondering how to set up the forms so that they keep the text formatting when I display the info from the database.

Example:

Hi,

This is my guestbook entry,

Onoff

as opposed to:

Hi,This is my guestbook entry,Onoff

Cheers!

RonPK

3:46 pm on Sep 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're probaly looking for nl2br() [php.net].