note 19861 deleted from language.variables.predefined by didou

From: Date: Fri, 03 Oct 2003 11:20:44 +0000
Subject: note 19861 deleted from language.variables.predefined by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57697@lists.php.net to get a copy of this message
Note Submitter: christlchris@gmx.de ---- Sometimes it is useful to check all form-posted variables and prepare them to be inserted again in the form when coming up the second time by replacing the special characters with HTML-specialchars. The following little code worked nice for this purpose: foreach( $HTTP_POST_VARS as $key=>$value ) { $$key = htmlentities(stripslashes($value)); }

« previous php.notes (#57697) next »