Page 1 of 1

Bug in php post Form

Posted: Tue Sep 25, 2012 10:15 pm
by royta
i have a text box
with this value
update user set tell

Code: Select all

= '9199122265',email = 'llevazll@gmail.com' where id = 42
but when i post it
i will get
update user set tell

Code: Select all

= \'9199122265\',email = \'llevazll@gmail.com\' where id = 42
how i can get orginal value ? i really need this thank you

Re: Bug in php post Form

Posted: Tue Sep 25, 2012 10:45 pm
by requinix
Turn off the magic_quotes setting in your php.ini and restart your web server.

Re: Bug in php post Form

Posted: Thu Sep 27, 2012 9:25 am
by temidayo
In case you do not have access to your php.ini and/or web server, just clean the variable

Code: Select all

if (get_magic_quotes_gpc()) {
       $value = stripslashes($value);
   }