--- a/trunk/adminer/view.inc.php
+++ b/trunk/adminer/view.inc.php
@@ -5,7 +5,7 @@
 	$dropped = drop_create(
 		"DROP VIEW " . idf_escape($TABLE),
 		"CREATE VIEW " . idf_escape($_POST["name"]) . " AS\n$_POST[select]",
-		substr(ME, 0, -1),
+		($_POST["drop"] ? substr(ME, 0, -1) : ME . "table=" . urlencode($_POST["name"])),
 		lang('View has been dropped.'),
 		lang('View has been altered.'),
 		lang('View has been created.'),