sanitizing get vars

From: Date: Thu, 02 Jun 2005 17:19:24 +0000
Subject: sanitizing get vars
Groups: php.general 
Request: Send a blank email to php-general+get-216249@lists.php.net to get a copy of this message
what is a safe way to clean a post/get before echoing it. example. input form, user enters some text, hits enter. .. next page i echo what they entered. right now i just run the variables passed by htmlentities() which preseves any html. is that acceptable?

« previous php.general (#216249) next »