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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to