title: How to submit file directly in FTP server from HTML form control in PHP
body: <p>I would like to know that is there any possibility where we can able to directly post the file in Remote FTP server.</p>
  
  <p>For achieving my need, I have checked that html form control supporting FTP protocol in Action attribute so which i have tried and below is the code snippet.</p>
  
  <pre><code>&lt;form id="myform" method="post" enctype="multipart/form-data" action="ftp://username:password@domainname"&gt;
      &lt;table style="border-collapse: collapse;" border="1" width="500px"&gt;
          &lt;tbody&gt;&lt;tr&gt;
              &lt;td&gt; Upload File :&lt;/td&gt;
              &lt;td&gt;&lt;input name="uploadedfile" type="file"&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td colspan="2"&gt;
               &lt;input name="Save File" value="Save File on FTP Server" id="submit" type="submit"&gt;
              &lt;/td&gt;
          &lt;/tr&gt;     
      &lt;/tbody&gt;&lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>But when i am uploading the file and submitting the form then browser do the authentication of the FTP which i have mentioned in action attribute and after success it directly redirect me in mentioned domain with file manager view that means i can see the files and folders which hosted in the mentioned FTP domain.</p>
  
  <p>I am sure that as form is successfully submitted then somewhere the uploaded file transfer in FTP server but where that i don't know.</p>
  
  <p>Also if the HTML support the FTP protocol in action attribute then there should some way to post the file directly in FTP server.</p>
  
  <p>Looking forward for some direction on this.</p>
  
  <p>Thanks in advance.</p>