Hi Comex Thanks! That worked! Robet you almost had it but missing the $key in $newvalue[$key]. ----- Original Message ----- From: "Comex" <comexk@xxxxxxxxx> To: <php-general@xxxxxxxxxxxxx> Sent: Friday, October 08, 2004 8:05 PM Subject: Re: Recursion to sanitize user input > foreach ( $userInput as $key => $value ) > { > $newvalue[$key] = sanitize( $value ); > } > return $newvalue; > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php