Thanks everyone. I ended up using a combination of the htmlspecialchars and the stripslashes commands. The htmlspecialchars function has an example about halfway down that I ended up using. Thanks =) > -----Original Message----- > Take a look at the php website on the function addslashes. > You will find an example with the functions reslash and reslash. > You might have some problems regarding magic_quotes. > Ive been using the reslash and deslash for some time now without > any problems. > > It might solve your problems. > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php