I have a website that people can post info on, and I was using strip_tags($string) before inserting my records in the database. The html was still getting through, and my website was defaced by someone sticking in img tags that pointed to some very disturbing pornography. Is there a better way to strip html out of form entry? I added perl reg ex to delete everything between < and > ... are there any good functions or libraries for form input validation? strip_tags() should have been able to catch this, but it didnt stop any of it...