i have 17 fields i want to chech for special chars, but i don't want to hand code each field checker. Could i get something like this to work?
ie.
$course=C&D; become $course=CandD;
$fld array= ("$course", "$school", "$degree", "$teluk", "$telother", "$mbl", "$emailrca", "$emailother", "$web1", "$web"2, "$degreeother", "$workexp", "$exhibs", "$awards", "$sponsor", "$pstate", "$title");
for($x=1; $x<17; $x++){
$fieldlist =${'ref'.$x};
$fld[$x] = str_replace(chr(13), "\r\n", $fld[$x]);
$fld[$x] = preg_replace("/(\n\n)+/", "\n", $fld[$x]);
$fld[$x] =str_replace("&","and",$fld[$x]);
}
many thanks....