$_POST goes empty after adding a new input type "file"
- by heldrida
Hi,
I'm not finding a way to understand and fix this and I've done a lot.
I've got a script, wish is a simple form, that sends a file trough POST. The second file, process the info.
By default, I give to the user a few fields, one of them being a input field of type "file" and there's also, a few "hidden" one's, that gives me values to work with on POST.
I found that, when adding a new input of type "file", the $_POST returns array 0, even $_FILES returns nothing. I have no idea how to fix this, and it works just fine when keeping the default input box of type "file".
This is the form http://pastie.org/872488
This only happens when:
Exists!
var_dump( $_POST ), or $_FILES,
print_r(), etc
Returns nothing. I've tryed to create a array on the input of type "files", like img_p_child[], but nothing.
How to solve this ?
Thanks for taking your time!