title: Create a folder from a HTML form input via PHP
body: <p>I am trying to create a PHP script that allows me to create a folder from an input value in an HTML form. This is what I tried so far:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;form  action="cfolder.php"&gt;
  &lt;input  name="foldername" id="foldername" &gt;
  
  &lt;input type="submit" value="upload" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>PHP i.e. cfolder.php</p>
  
  <pre><code>&lt;?php
  
  $subject = $_POST["foldername"] = $foldername; 
  mkdir($foldername, 0700);
  
  
  ?&gt;
  </code></pre>
  
  <p>Unfortunately the folder is not being created. I tried other solutions but to no avail.</p>
  
  <p><em>The error it gives me is [11-Mar-2013 12:54:51] PHP Warning:  mkdir() [function.mkdir]: No such file or directory in /home5/../cfolder.php on line 4</em></p>