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) {