don't want html tags!

Codes here !

Moderators: macek, egami, gesf

tranquillo
New php-forum User
New php-forum User
Posts: 74
Joined: Sun Nov 24, 2002 6:48 pm
Location: katrineholm
Contact:

don't want html tags!

Postby tranquillo » Sun Jun 01, 2003 5:35 am

Hi...

I've built a forum/guestbook thing for a website. it's verry basic. it simply writes text into a database and then shows it on a new page. the problem is that if someone writes a html tag such as a <img src...> the image will show... I don't want that...
can someone help me with this?

thanx.

liquedus
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Postby liquedus » Sun Jun 01, 2003 5:32 pm

use function strip_tags()


Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 2 guests