Hi all,
I have a form with a quantity list you can pick from an option value list.
IE
td>Quantity</td>
<td><select name='Quantity'>
<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>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</select></td>
And what I am trying to do is pass the value of the Quantity selected to my process.php page.
I can get the value of the checkbox they use to select the item, but not the quantity. Here is my php process.php page code.
<?
$Item1 = $_REQUEST['Item1'];
$Quantity = $_REQUEST['Quantity'];
print "The Item ordered is ".$Item1;
print "The quantity ordered is ".$Quantity;
mail ("x@x.com", "Order for me", $Item1, $Quantity);
header ( "Location: http:[url]www.somewhere.com/thankyou.html[/url]" ) ;
?>
I Have this in my php page where they choose the item and hit submit.
<? $Quantity = $_POST['Quantity'] ?>
And I always get "0" for the quantity.
Thanks in advance for any help.
Don