So my html is:
<form action="/product/additem" method="post" enctype="multipart/form-data">
<input type="checkbox" name="item_active" id="item_active" value="Yes" />
*** more input types but all of them are type file & text
</form>
Now in my PHP I do this:
var_dump($_POST['item_active']);
and this is what I get:
string(0) ""
NOTE:
My javascript code that does the actual .submit
$('#button').on('click', function() {
$('#new_item_container form').submit();
});
What is wrong with my checkbox I dont get it. I am using Firefox
<input type="file"in it$_POST['item_active']wouldn't be set at all.item_active?