this is my form:
<form action="" id="comprobante" class="frm-ventas" method="post">
<input type="text" name="nombre" id="nombre">
<input type="hidden" name="cod" id="cod" value="">
<button type="submit">
</form>
I need that when the value of the input "cod" is 01 send me to the action="sales / register_sales" or if it is 03 send me to action="sales / register_buy". Is it possible to do that? What would it be like?