isInit()) { echo 'Error db init'; return; } if (empty($_POST)) { header('Location: index.php'); die(); } echo '
';
var_dump($_POST);
echo '
'; $id = null; foreach ($_POST as $name => $value) { if ($name == 'fid') { $id = $value; continue; } if (isset($id)) { $value = trim(strtolower($value)); $db->addWord($id, $value); } } if (empty($id)) { header('Location: index.php'); die(); } header('Location: index.php'); //header('Location: result.php?id=' . $id); die();