Bug in php post Form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
royta
Forum Newbie
Posts: 1
Joined: Tue Sep 25, 2012 10:11 pm

Bug in php post Form

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Bug in php post Form

Post by requinix »

Turn off the magic_quotes setting in your php.ini and restart your web server.
temidayo
Forum Contributor
Posts: 109
Joined: Fri May 23, 2008 6:17 am
Location: Nigeria

Re: Bug in php post Form

Post 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);
   }
Post Reply