Re: Help with addslashes and http post vars..
| From: | Peter Bowen | Date: | Wed, 02 Aug 2000 15:48:55 +0000 |
| Subject: | Re: Help with addslashes and http post vars.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9717@lists.php.net to get a copy of this message | ||
There is a configuration directive called magic_quotes_gpc to do exactly
what
you want to do. See http://www.php.net/manual/configuration.php
Thanks.
Peter
>
>
> I have a form that submits, when the user submits,
>
> <input tpye=text name=firstname size=50>
>
>
> name=firstname becomes $firstname when i submit the form, using post.
>
>
> here's my question, i have about 30 of these fields, and i need to insert
> them all into a database.
>
> right not i have to do
>
> $firstname = addslashes($firstname);
>
> for each variable, can i do something like
>
> $HTTP_POST_VARS = addslashes($HTTP_POST_VARS);
>
> ??
>
>
> then will all my varibles i use be fixeD?
>
>
> like $firstname will have the slashes??
>
>
> Thanks for any help!
>
>
> Chris
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>