title: PHP upload file to web server from form. error message
body: <p>I am trying to upload a file from a php form. 
  I have verified the target location with my ISP as being "/home/hulamyxr/public_html/POD/"</p>
  
  <p>I get the below error when executing the page:</p>
  
  <pre><code>Warning: move_uploaded_file(/home/hulamyxr/public_html/POD/ 1511.pdf) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/hulamyxr/public_html/hauliers/include/capturelocal2.php on line 124
  
  Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpyp3ERS' to '/home/hulamyxr/public_html/POD/ 1511.pdf' in /home/hulamyxr/public_html/hauliers/include/capturelocal2.php on line 124
  POD Successfully uploaded for delivery 1511. filename: :
  </code></pre>
  
  <p>My Form Code</p>
  
  <pre><code>&lt;form enctype="multipart/form-data" method="post" action="capturelocal2.php"&gt;
  &lt;input type=file size=6 name=ref1pod id=ref1pod&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My PHP Code to upload the file</p>
  
  <pre><code>$ref1 = $_POST[ref1]; //this is the name I want the file to be
  $ref1pod = $_POST[ref1pod]; // this is the name of the input field in the form
  
    move_uploaded_file($_FILES["ref1pod"]["tmp_name"],
    "/home/hulamyxr/public_html/POD/ " . ($ref1.".pdf"));
  </code></pre>
  
  <p>Any assistance will be greatly appreciated.
  Thanks and Regards,
  Ryan Smith</p>