Is there are more efficient way for dealing with magic quotes for every single $POST than checking to see if they’re on and if they are then StripSlashing away? From searching on-line some hosts will allow you to change the config file while others won’t.
I’m hoping for something that I could do once and then absolutely forget about it, regardless of whether I keep my current host or have to change hosts 5 years down then line…
In terms of implementing this, am I correct in thinking that I can just put it at the top of any page for which I JUST $POSTed values in order for it to do its magic (so to speak)?
The foreach would then look for anything that was just posted and then convert it (if need be). My $var1 and $var2 would then be cleansed or not as appropriate to whether magicquotes is enabled?