I have posted questions on hidden field previously and the name was duplicated and now I have problems with the text box. I am using a jquery for my image viewer. And at the same time, I want to have hidden fields. However, with the textbox, it appears to show all the textbox.
<div class="container">
<div class="full-image">
<form action="addOrder.php" method="post">
<a href="city/GVcementMixture.jpg" class="zoomIt visible"><img src="city/rsz_cementmixture.jpg" alt="" /></a>
<input type="hidden" name="op" value="add">
<input type="hidden" name="name" value="Cement Mixture">
<input type="hidden" name="price" value="29.90">
<input type="text" name="quantity" value="quantity?">
<input type="hidden" name="subtotal" value="subtotal">
<input type="submit" value="Add to Cart">
</form>
....... .....
The output will show two textboxes of quantity, however, the number of quantity that I keyed in, it managed to store in my database...
Anyone knows how can I solve this issues?
p.s. this question has been solved below with the help of function.. thanks for your time reading it.