als je submit krijg je .php?blabla&enzv
maar er komt geen bericht dat de map aan is gemaakt en de map word ook niet aangemaakt :S
<?PHP
if($_POST['submit']){
$dir = $_REQUEST['dir'];
$username = $_REQUEST['username'];
$newdir = $_REQUEST['dirname'];
if ($newdir!=null) {
if (!is_dir($newdir)) {
if (mkdir($newdir, 0777)) {
echo "Directory <b>$newdir</b> succesfully created!\n";
}
else {
echo "Error: Directory <b>$newdir</b> Could Not Be Created!\n";
}
}
else {
echo "Error: Directory <b>$newdir</b> Already Exists!\n";
}
}
else {
echo "Error: You did not enter a directory name!\n";
}}
?>
<html>
<head>
<title>Map aanmaken</title>
</head>
<body>
<form action="<?php echo $PHP_SELF ?>">
dir:<input type="text" name="dir"><br>
username:<input type="text" name="username"><br>
newdir:<input type="text" name="dirname"><br>
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>
jacob_slomp
1970-01-01 01:00:00
<form action="<?php echo $PHP_SELF ?>"> moet <form action="<?php echo $PHP_SELF ?>" method=post> worden