I'm making a guestbook, but there is one problem. I don't want that people should be able to write html-tags in the fields. Is there a simple way to remove the html-tags or a way to tell if there are html-tags in the variables?
http://www.phpbuilder.com/manual/function.strip-tags.php
You also might want to look at the function
htmlspecialchars()