That worked perfectly, thanks. I appreciate the explanation as well.
I would like to ask one more question. For the quantity drop down, I'd like to generate/populate that dynamically as well.
<option value=\"0\" selected=\"selected\">Select quantity</option>
<option value=\"1\">1</option>
<option value=\"2\">2</option>
<option value=\"3\">3</option>
</select>";
how would I iterate through the $qty variable and only generate the number of option choices for the quantity(in the example 3). Would that be within the while loop as well, or would I need to do a for loop for that one?