Forum Moderators: coopster
I'm having another problem with my flat file blog that I hope you can help me with. I'm trying to set it so that whenever a user submits a comment, the script will automatically detect when the user has used a line break. At the moment, the script seems to just ignore this when displaying the comments and posts one large paragraph.
Any ideas as to how I can get around this?
Thanks very much in advance :)
Neil
To be honest, if I did go with the JS method, i'm not entirely sure how i'd set the php variable to the modified JS one without having to submit it again...
Cheers,
Neil
echo nl2br($somevar); echo nl2br("some text"); It add html break tags to all the linebreaks. See: [us2.php.net ]