oppure invece di $_SERVER[PHP_SELF] metti $_SERVER['PHP_SELF'] non ricordo beneCodice PHP:
<?php
if(isset($_POST['submit'])){
$dirname = $_POST['dirname'];
mkdir($dirname,"0755");
}
else
{echo "
<html>
<body>
<form name='form1' method='post' action=' $_SERVER[PHP_SELF];'>
Directory Name:<input type='text' name='dirname'>
<input type='submit' name='submit' value='Crea'>
</form>
</body>
</html>";
}
?>
è solo un'idea,prova comunque![]()