Try checking the php manual for magic_quotes_gpc and/or magic_quotes_runtime, that's most likely what you're looking for. It automatically escapes chars for get, post and cookie vars (hence, the gpc). Try adjusting the settings for these with ini_set();
(I'm only available at the email address provided in my profile on weekdays, if you have questions or advice, during off hours use AIM). Also any views I provide here or on my website are mine and not representative of any views of my work, family, friends and sometimes even myself.