<?php
if(isset($_GET["name"])
mkdir("php/".$_GET["name"]);
?>
<html>
<head>
<title>Create Directory</title>
</head>
<body>
<form action="?">
<input type="text" name="name" placeholder="Directory Name"/><br>
<button type="submit">Create</button>
</form>
</body>
</html>
if(isset($_GET["name"])
mkdir("php/".$_GET["name"]);
?>
<html>
<head>
<title>Create Directory</title>
</head>
<body>
<form action="?">
<input type="text" name="name" placeholder="Directory Name"/><br>
<button type="submit">Create</button>
</form>
</body>
</html>
Comments