I list about 20 lines, each line represents an order.
Each line should have 3 buttons, each button will perform a different action.
I have 3 actions for processing each request to send each button, I just don’t know how to configure HTML forms for each button.
<tr>
<td>
<form method="post" action="/orders/do1"><input type=button ... /></form>
<form method="post" action="/orders/do2"><input type=button ... /></form>
<form method="post" action="/orders/do3"><input type=button ... /></form>
</td>
</tr>
Should I create 3 forms for each button, for each line in my listing?
(this will mean 20 lines x 3 forms = 60 forms per page)
This is normal? (i.e., or is there a better way to do this?)
source
share