Having problems with replacing the percent sign.
For example, someone enters 100% (100 percent) into a form, but when I try ereg_replace("%", "%%", $string); it comes out with an error.
Also, is there a better way of writing this.
$encoded_string=ereg_replace("%", "%%", $string);
$encoded_string=ereg_replace('\\"', '"', $encoded_string);
$encoded_string=ereg_replace "\\'", "'", $encoded_string);
Thanks