forsterm
Erfahrenes Mitglied
Hier die ganze ordner_anlegen.php
mfg
forsterm
PHP:
<?PHP
if ($_POST['Submit'] == "Ordner erstellen"){
$dir = $_POST['textfield'];
mkdir ("$DOCUMENT_ROOT/$dir", 0700);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="ordner_anlegen.php">
<table width="98%">
<tr>
<td width="16%" height="30"><strong>Name des Ordners: </strong></td>
<td width="84%"><input name="textfield" type="text" size="50"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Ordner erstellen"></td>
</tr>
</table>
</form>
</body>
</html>
mfg
forsterm