I have a form with two sumbit buttons named "action".
Ex. Code:
<form name="cart" method="POST" action="index.cfm">
<input name="qty1" type="text" value="0">
<input name="price1" type="text" value="0">
<input name="qty2" type="text" value="0">
<input name="price2" type="text" value="0">
<input name="total" type="text" value="0">
<input name="action" type="submit" value="Checkout">
</form>
I would like to submit the form via a text link. I know how to submit a form using:
<a href="javascript:document.form[0].submit()">Submit</a>
But when I do, "action" is not defined. How can pass a value to "action"?
Ex. Code:
<form name="cart" method="POST" action="index.cfm">
<input name="qty1" type="text" value="0">
<input name="price1" type="text" value="0">
<input name="qty2" type="text" value="0">
<input name="price2" type="text" value="0">
<input name="total" type="text" value="0">
<input name="action" type="submit" value="Checkout">
</form>
I would like to submit the form via a text link. I know how to submit a form using:
<a href="javascript:document.form[0].submit()">Submit</a>
But when I do, "action" is not defined. How can pass a value to "action"?