$(document).on('click', '#submit', function() {
$( ".product-form" ).submit();
});
Whenever I use a button outside of a form and use jQuery submit to submit the form instead, I end up getting an empty $_POST array and my $_REQUEST array gets filled instead? Is there a way to prevent this from happening and get the normal submit behavior?
<form class="product-form" action="<?=url("product/create", false, $query)?>">
...
</form>