Hi,
I have used a loop so there are a number of quantity drop down menu's designed for a shopping cart style website, with $i being the loop counter and qty being the name of the drop down menu so I have used (ignore the onChange function)
What I need to know is how to get the value of the selected option when a link is clicked, my link is currently
however I know this does not work, when I check the link on the live page it's linking to
and so on for each link...
Can anyone help me find a way to have the value of the quantity in place of the number of the loop?
Thanks in advance!
I have used a loop so there are a number of quantity drop down menu's designed for a shopping cart style website, with $i being the loop counter and qty being the name of the drop down menu so I have used (ignore the onChange function)
Code:
<select id='qty{$i}' onChange='findTotal($price,$i)'>
<option value='0'>0</option>
<option value='1'>1</option>
<option value='2'>2</option>
<option value='3'>3</option>
<option value='4'>4</option>
<option value='5'>5</option>
<option value='6'>6</option>
</select>
Code:
<a href="index.php?quantity=$qty{$i}>Add to Cart</a>
and so on for each link...
Can anyone help me find a way to have the value of the quantity in place of the number of the loop?
Thanks in advance!
Comment