remove more comparisons against stryes
authorchriskl <chriskl>
Sat, 19 Apr 2003 09:25:22 +0000 (09:25 +0000)
committerchriskl <chriskl>
Sat, 19 Apr 2003 09:25:22 +0000 (09:25 +0000)
users.php

index 360944c0b61bf19ce8be6acc892d5f650bb4772c..6653e05ec4907b7b16088844ebe30c90ce1ab942 100644 (file)
--- a/users.php
+++ b/users.php
@@ -3,7 +3,7 @@
        /**
         * Manage users in a database cluster
         *
-        * $Id: users.php,v 1.7 2003/04/04 20:04:09 slubek Exp $
+        * $Id: users.php,v 1.8 2003/04/19 09:25:22 chriskl Exp $
         */
 
        // Include application functions
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                        echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n";
                        echo "<input type=\"hidden\" name=\"username\" value=\"", htmlspecialchars($_REQUEST['username']), "\" />\n";
-                       echo "<input type=\"submit\" name=\"choice\" value=\"{$lang['stryes']}\" /> <input type=\"submit\" name=\"choice\" value=\"{$lang['strno']}\" />\n";
+                       echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\" /> <input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\" />\n";
                        echo "</form>\n";
                }
                else {
                        doCreate();
                        break;
                case 'drop':
-                       if ($_REQUEST['choice'] == $lang['stryes']) doDrop(false);
+                       if (isset($_REQUEST['yes'])) doDrop(false);
                        else doDefault();
                        break;
                case 'confirm_drop':