Hi, can someone tell me why the following results in evaluated variables with 2 slashes in front of apostrophys instead of one and how I can modify it to only add 1? Thanks!
foreach($_POST as $k=>$v){ if (get_magic_quotes_gpc()){ $_POST[$k] = stripslashes($v); } $_POST[$k] = addslashes($v); eval( "\$$k = \"$_POST[$k]\";" ); } --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.338 / Virus Database: 189 - Release Date: 3/14/02 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php