Hello...
Try this...
$pat = array("\", "@", "*", "&", "%");
$with = (_) \\What ever you want...
$car_year = str_replace ($pat, $with, stripslashes($car_year));
echo $car_year;
This would work with ONE VARIABLE...
I suppose maybe you could make the
Variables($car_type,$car_mod
I have a script that prevents invalid characters from being passed from a
html form to a mysql database using php and I am wondering if there is a way
to condense it so instead of declaring the ereg_replace for each field in
the html form, to simply use one function to remove invalid characters an