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
royta
Forum Newbie
Posts: 1 Joined: Tue Sep 25, 2012 10:11 pm
Post
by royta » Tue Sep 25, 2012 10:15 pm
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
requinix
Spammer :|
Posts: 6617 Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA
Post
by requinix » Tue Sep 25, 2012 10:45 pm
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
Post
by temidayo » Thu Sep 27, 2012 9:25 am
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);
}