Possible Duplicate:
JavaScript: Upload file
Uploading a file with html, javascript, and php
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.
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.
var myPatentOtherBrowseContainer = document.createElement('input');
myPatentOtherBrowseContainer.name = 'myPatentOtherBrowseContainer';
myPatentOtherBrowseContainer.id = 'myPatentOtherBrowseContainer';
myPatentOtherBrowseContainer.type = 'file';
myPatentOtherBrowseContainer.multiple = 'multiple';
myPatentOtherBrowseContainer.size = '60';
this is just part of the code.
BTW, javascript is part of the code so it should be a tag!