I have a local srver set up for testing, and I'm experiencing a strange problem. When I type inputs into a form, PHP is reading them and escaping some values. I need to take what the user enters and sanitize it using my own methods, but something happening before I can get hold of it. I also have an account on Dreamhost, and when I try the script there it works fine. I've grabbed Dreamhost's php.ini and compared it to mine, and everything looks to be the same. When I enter "'@\/#, then echo it using $_POST['input1'], I get \"\'@\\/#:. I thought it might have something to do with magic quotes at first, but this happens whether they're on or off. Does anyone have any idea what could cause this? I'm running Apache with PHP 5.2.5. Thanks
echo stripslashes($_POST['input1']); PHP: I think magic_quotes_gpc is on (it's on by default), on your machine
Ah, it was XAMPP. It uses two php.ini files for some reason. Disabled magic quotes in both and it's working now. Thanks.