Uploading a file with javascript, and php
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5587973/javascript-upload-file">JavaScript: Upload file</a><br>
  <a href="http://stackoverflow.com/questions/7475567/uploading-a-file-with-html-javascript-and-php">Uploading a file with html, javascript, and php</a>  </p>
</blockquote>



<p>So I am trying to get my upload file code to work better. If someone could show me a simple way to upload a file, that could help me simplify my code, where it only uses javascript and PHP. </p>

<p>EDIT: If I could get a simple block of code in javascript and php then i could figure out the rest. I just cant find any good simple code snippets that shows the form, input, validate input, post to server, etc.</p>

<pre><code>var myPatentOtherBrowseContainer = document.createElement('input');
            myPatentOtherBrowseContainer.name = 'myPatentOtherBrowseContainer';
            myPatentOtherBrowseContainer.id = 'myPatentOtherBrowseContainer';
            myPatentOtherBrowseContainer.type = 'file';
            myPatentOtherBrowseContainer.multiple = 'multiple';
            myPatentOtherBrowseContainer.size = '60';
</code></pre>

<p>this is just part of the code.</p>

<p>BTW, javascript is part of the code so it should be a tag!</p>
