Re: Re: Evaluating form posts

From: Date: Mon, 13 Sep 2004 06:35:10 +0000
Subject: Re: Re: Evaluating form posts
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-196480@lists.php.net to get a copy of this message
HI, A good article about magic quotes http://www.webmasterstop.com/tutorials/magic-quotes.shtml zareef ahmed --- Alexander Kleshchevnikov <seigo@lan23.net.ua> wrote: > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ===== Zareef Ahmed :: A PHP Developer in Delhi ( India ). Homepage :: http://www.zasaifi.com/zareef_ahmed.php __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail

« previous php.general (#196480) next »