Re: Help with addslashes and http post vars..

From: Date: Wed, 02 Aug 2000 18:40:37 +0000
Subject: Re: Help with addslashes and http post vars..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9780@lists.php.net to get a copy of this message
Heya: "Christensen, BruceX R" wrote: > > function addSlashesToFormVars() { > global $HTTP_POST_VARS; > > while( list( $key, $val ) = each( $HTTP_POST_VARS )) { > $$key = $HTTP_POST_VARS[$key] = addslashes( $val ); > > } > } Don't forget to "global $$key;" before doing $$key = $HTTP_POST_VARS[$key] = addslashes( $val ); --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y More than just answers. Solutions. (SM) http://www.analysisandsolutions.com/ 4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#9780) next »