Re: Evaluating form posts
| From: | Alexander Kleshchevnikov | Date: | Sun, 12 Sep 2004 17:17:29 +0000 |
| Subject: | Re: Evaluating form posts | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196452@lists.php.net to get a copy of this message | ||
You should chech for configuration of magic quotes gpc.
Use get_magic_quotes_gpc() function:
$foo = get_magic_quotes_gpc() ? stripslashes($_POST["foo"]) : $_POST["foo"])
;
Do it with all GET and POST variables.
--
Alexander.
"Php Mailing List Account" <phpmail@membrane.mit.edu> wrote in message
news:20040912005354.GA1883@membrane.mit.edu...
> Hello everyone,
>
> I had an apache server running with php 5. Now I installed unix on that pc
and apache and php 5.
> I am using some forms on web pages and get their values by writing
> $foo = $_POST["foo"];
> Since I 'upgraded' to unix i am getting a double backslash for each
backslash entered on the form
> and '\"' for every '"'.
> Could someone please tell me what's going on? Did I miss a part of the
FAQ?
> (The form looks like
> <form method="post">
> <input type="text" />
> <input type="submit" name="action" value="submit" />
> </form>
> )
>
> Thank you in advance