diff --git a/edit.inc.php b/edit.inc.php index 593cf4ce..246d3a18 100644 --- a/edit.inc.php +++ b/edit.inc.php @@ -27,7 +27,7 @@ if ($_POST) { } } if (mysql_query($query)) { - redirect($SELF . "select=" . urlencode($_GET["edit"]), $message); + redirect($SELF . ($_POST["insert"] ? "edit=" : "select=") . urlencode($_GET["edit"]), $message); } $error = mysql_error(); } @@ -66,6 +66,7 @@ if ($_POST) {
$field) { echo "\n"; } -echo "\n"; +echo "\n"; ?>
" . htmlspecialchars($name) . ""; $value = ($data ? $data[$name] : $field["default"]); @@ -90,14 +91,14 @@ foreach ($fields as $name => $field) { } elseif (strpos($field["type"], "text") !== false) { echo ''; } else { //! numbers, date, binary - echo ''; + echo ''; } if ($field["null"] && preg_match('~char|text|set~', $field["type"])) { echo ''; } echo "
" . ($where ? " " : "") . "
" . ($where ? " " : "") . "