On 10-May-01 Sterling wrote:
> H-
>
> I'd like to be able to strip the slashes from all the imported
> HTTP_POST_VARS.
>
> I found the $string = stripslashes($string); command.
>
> But this becomes very tedious if I have 20 vars and I need to code each
> one with its own stripslashes line.
<snip>
not tested, but try something like:
while (list ($k, $v) =each ($HTTP_POST_VARS)) {
$$k=stripslashes($v);
}
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]