Hello,
When I send vars to another page via Post method, if i have ' or : or / PHP adds alot of "/////////" to my vars. Please tell me how can I overcome that problem?
Thank you,
Eyal.
Php adds "/////////" to my $_POST vars
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
You should probably define a function called magic_stripslashes() like this:
So that your code doesn't break when you move it to a server that doesn't have stripslashes on.
Code: Select all
function magic_stripslashes($string) {
if (get_magic_quotes_gpc()) return stripslashes($string);
else return $string;
}