title: Form variable for upload folder
body: <p>Okay I am almost there. I have a form that submits info and an upload as well as creates a directory. I need it to save the uploaded file to the directory that I just created. It will create the folder with the form field I used. that part works fine. I am stumbling on getting the file to save in that newly created folder.  </p>
  
  <pre><code> $newname = dirname(__FILE__).'/images/'.$filename; //this is now but needs to be 
  
   $newname = dirname(__FILE__)$folder.'/'.$filename; //Not sure how to do this part
  </code></pre>
  
  <p>I get error on last one of</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected T_VARIABLE in /home/hmintcwa/public_html/admin/list/upload.php on line 58</p>
  </blockquote>