Re: $_REQUEST Loop

From: Date: Tue, 20 May 2003 21:58:11 +0000
Subject: Re: $_REQUEST Loop
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148338@lists.php.net to get a copy of this message
<?php function SterilizeFrmInput(&$arr) { foreach($arr AS $k => $v) $arr[$k] = addslashes($v); reset($arr); } SterilizeFrmInput($_REQUEST); ?> This will add slashes to all the values of any key=>value pair in the given Array() be it $_REQUEST, $_POST, $_GET, etc... Jim Lucas ----- Original Message ----- From: "Lee Herron QCS" <lee@qualitycarstereo.com> To: <php-general@lists.php.net> Sent: Tuesday, May 20, 2003 2:02 PM Subject: [PHP] $_REQUEST Loop > Anyone have a technique for looping through $_REQUEST to find all values > being passed? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#148338) next »