PDA

View Full Version : RE: Forums


Taylor_1978
06-17-2003, 10:51 PM
HIYA!

I've created my own forum using mysql and php and was just wondering, when someone hits ENTER in their message, how do I get that to show... eg....

THAT?

At the moment, if they hit enter, it still shows up on one line. I have tried the field to be set at both "text" and "longtext" but neither worl - the only way is if they use the html command <P> or <BR>.

Thanks in advance. :thumbsup:

Nightfire
06-18-2003, 12:28 AM
if you're using php, use the nl2br() function

Taylor_1978
06-18-2003, 01:52 AM
Originally posted by Nightfire
if you're using php, use the nl2br() function

Ummm - I guess ill head off to php.net now 'cause I have no idea what the nl2br() function is !! LOL

While I am here though... how do I stop people from using html in a forum post?

Thanks again! :thumbsup:

Nightfire
06-18-2003, 02:12 AM
while you're at the php site, do a search for striptags():)

Jeewhizz
06-18-2003, 09:12 AM
I'll move this over to the PHP forum for you.... Its more suited there :) Try and keep your posts in the correct section :)

Thanks

Jee