Código PHP:
<?php
##############################################################
## makedir - andrew heebner - [email protected] - 10/03/1999 ##
## ##
## name this file - tests.php3 ##
##############################################################
// start main makedir function
if ($makedir == "makedir") {
$content = "$direct";
$dirmake = mkdir("$content", 0777);
// display link to directory after making it
print "<center>\n";
print "<a href=\"$content\">click here to view your new directory</a>\n";
print "</center>\n";
}
// main form to input information
print "<form action=\"tests.php?action=direct\">\n";
print "<input type=\"text\" name=\"direct\" size=\"15\">\n";
print "<br>\n";
print "<input type=\"submit\" name=\"makedir\" value=\"makedir\">\n";
print "</form>\n";
?>
Salu2 y gracias