Perfect, that's exactly what i was looking for. My primary problem was with db queries, which i was pretty sure addslashes would cover, but wanted to be sure that there wasn't any instances that i hadn't thought of that could break the code. Thanks for your time, you've been most helpful.