<?phpwhile (list($key, $val) = each($HTTP_POST_VARS)) { if($val!="") { // dont process null fields eval("$$key = addslashes("$val");"); } } ?>