Not sure if this is what you want. This code will replace all single quotes in $HTTP_POST_VARS with the ISO character for a single quote. When testing it view the source code to see the ISO character as the browser will just display a '. Hope this code shows up properly in the browser. -Neil
<body>
<form method="post" action="<?echo$PHP_SELF?>">
<input type="text" name="x"><br>
<input type="text" name="y"><br>
<input type="text" name="z"><br>
<input type="submit"><BR>
</form>
<?
if (!is_array($HTTP_POST_VARS))
return;
while(list($key, $val) = each($HTTP_POST_VARS)) {
$GLOBALS[$key] = $val;
$val=stripslashes($val);
$val=ereg_replace("'","'",$val);
echo"$key=$val<br>";
}
?>
</body>