$val) { if(!preg_match('/^ques_([0-9]+)$/', $var, $parts)) continue; $key = $surv_path_info . '+' . $parts[1] . '+' . $val; if(dba_exists($key, $dbm)) $count = dba_fetch($key, $dbm) + 1; else $count = 1; dba_replace($key, $count, $dbm); } dba_close($dbm); start('Thank You'); echo "Your survey has been recorded. If you like, you may see the ", "", "current results."; ?>