Is there a way to execute a loop that will automatically identify all variables and in that loop, tell it to addslashes() to each variable?
if the variables are all in an array:
<? $array = array_map ('addslashes', $array); ?>