array ("post", "string", ""), ); getFields($fields); // DO IT if ($confirm=="y" ) { reset($_POST); while (list($key,$val)=each($_POST)) { if (substr($key,0,4)=="del_") { // Effacement de la base $val $r=$mysql->del_db(substr($key,4)); if ($r) { $msg->raise("INFO", "mysql", _("The database '%s' has been successfully deleted"), $val); } } } include("sql_list.php"); exit(); } // Confirm form $found=false; foreach($_POST as $key=>$val) { if (substr($key,0,4)=="del_") { $found=true; } } if (!$found) { $msg->raise("ALERT", "mysql", _("Please check which databases you want to delete")); include("sql_list.php"); exit(); } ?>