I've written a guestbook in php
user writes a message in a texarea and in the code I insert it in a table
and then in showpage I sow it to him.before I insert the message into table
, I use addslashes() and htmlspecialchars(). the prblem is that , when I
retrieve the message from the table all sentences are after each other , and
there's no break!!!! that makes a bad appearance.
I mean for example someone write in the texarea as following :
how r u?
what happened there?!
when I show the message to him the appearance is this way :
Hi how r u? what happened there?!
what should I do to show him exactly how he wrote the message?
The new MSN 8: advanced junk mail protection and 2 months FREE*
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php