Originally posted by swr
Using stripslashes, users can still have backslashes. The magic_quotes_gpc setting will turn the backslashes into double-backslashes (\), and stripslashes will turn that back into a single backslash.
For some reason, it doesn't seem to be working that way. Every time I enter a backslash into a field and the stripslashes function is used on it, it disappears. But every time the stripslashes function isn't used on it, two backslashes appear.
Unfortunately I don't have access to the magic_quotes_gpc setting with my current web host.
EDIT: Odd, now it is working exactly like you said it would after I removed the stripslashes function and added it again. Very strange... But is there a way to remove the slashes just in front of the single and double quotes instead of all the slashes using ereg_replace?