Form and database, plugin development

Post the form instead back to the same admin page you are coming from instead (basically using form action=''), then detect the form posting on that page (eg. if (isset($_POST['createdir'])), and then include the file that will actually process the request (eg. include(EASYDM_PLUGIN_URL.'generate-dir.php');)