i have input sets same names, , need submit thems same action. when try submit forms, 1 form posted.
like this:
<form id="form1" name="form1" action="aaa.php" method="post"> <input type="hidden" name="id_product" value="2"/> <input type="hidden" name="add" value="1" /> </form> <form id="form2" name="form2" action="aaa.php" method="post"> <input type="hidden" name="id_product" value="3"/> <input type="hidden" name="add" value="1" /> </form>
that's because can submit 1 form @ time. besides, fields have exact same name doesn't make sense submit both.
you clone fields of second form first form using javascript, though wouldn't work if user has javascript disabled in browser. or wrapping fields 1 form, calling first 2 fields id_product_1
, add_1
, second 2 id_product_2
, add_2
respectively, example.
but in all, sounds have design problem.