I have data posted from a form, and because the "magic_quotes" are ON, all the simple and double apostrophes are escaped. I foud that the htmlspecialchars fonction with ent_quotes will code those, but how to use it. Do I include this in my form? How? Do I include it in the php file that processes my form, but then the quotes have already been escaped. Anyone can help me with an example?