I've looked through the Related Questions section and I can't find an answer to this. I'm using PHP + Jquery. I added <input type='file' name='file[]' size='20 />'
dynamically, using Jquery. However, when I Post the data, and use print_r($_POST);
, I get the other elements that were there before I dynamically added the Jquery Code, but not the file elements.
Can someone help? Thanks in advance.
[EDIT] Code added:
$(".btn_add").click(function () {
$("#file_stage").before("<tr><td>Primary <input type='radio' name='primary' value='0' /></td><td>File: <input type='file' name='file[]' size='20' /></td></tr>");
});
[EDIT] Link to Fixee: http://fixee.org/paste/uox0hqy/