I think this question has been asked a few times and I did find a few on google too.
However I am not trying to change the whole form action. I just need to change it partially.
Here is what I mean:
I have the following form:
<form action="order.php?add=<?php echo $product_name; ?>&price=<?php echo $price; ?>&qty=1" method="post">
<input type="text" name="qty" id="qty" class="qty" size="12" />
<input type="submit" class="button2" name="buttonadd" id="button" value="Add to cart" />
</form>
what I need to do is to change the qty=1
in the form action so it reflects the <input type="text" name="qty" id="qty" class="qty" size="12" />
value!
How can I achieve this?