$val) { if ($acs[$val] == 'UNCLASSIFIED/PENDING') { continue; } list($value, $log, $offset) = explode('_', $name); mysql_query('INSERT INTO windowclassifications (activity_id, log_id, wc_offset) VALUES ('. ((int) $val) . ', ' . ((int) $log) . ', ' . ((int) $offset) . ')'); } } if (isset($_POST['action'])) { $args = array(); $action = str_replace('.', '_', $_POST['action']) . '_'; foreach ($_POST as $k => $v) { if (substr($k, 0, strlen($action)) == $action) { $args[substr($k, strlen($action))] = $v; } } call_user_func('process_' . str_replace('.', '_', $_POST['action']), $args); header('Location: /android/admin.php'); exit; } # ------------------- End of form handling ---------------------- $acs = getActivityArray(); ?>