I have spent all day trying to figure this out. I can create a directory no problem. What I'm trying to do is fill out the form to name the directory.I have read everything I could find and then some. So here it is. Any help would be appreciated.
Form
<html>
<form method="POST" action="cdir.php">
Enter Directory Name<br>
<input type="text" value="" name="dname"><br>
<input type="submit" value="Create">
</form>
</body>
</html>
PHP
<?php
//Create folder
mkdir ("$dname", 0755);
?>
Thanks.
New