Skormy
07-29-2007, 06:40 AM
I'm trying to pass a drop down value on a form on one page to a form on the next page and haven't figured it out just yet. I know I'm missing something, just not sure what.
Here's the simple dropdown:
input type="hidden" name="product[]" value="necklace1">
<select name="product[]">
<option value="black cord">black 18 inch rubber cord</option>
<option value="silver chain">18 inch sterling silver box chain</option>
<option value="blue cord-18">blue 18 inch rubber cord</option></select>
On the next page, here's the variable:
$cord = ($_POST['product[]']);
Further down on the page, here's the select data element:
<input type="hidden" name="product[]" value="<?php echo $cord; ?>">
I know I'm doing something wrong, after some hefty google trolling, just can't figure out exactly what, but I know I'm not passing the selected value to the next page. Any ideas?
Here's the simple dropdown:
input type="hidden" name="product[]" value="necklace1">
<select name="product[]">
<option value="black cord">black 18 inch rubber cord</option>
<option value="silver chain">18 inch sterling silver box chain</option>
<option value="blue cord-18">blue 18 inch rubber cord</option></select>
On the next page, here's the variable:
$cord = ($_POST['product[]']);
Further down on the page, here's the select data element:
<input type="hidden" name="product[]" value="<?php echo $cord; ?>">
I know I'm doing something wrong, after some hefty google trolling, just can't figure out exactly what, but I know I'm not passing the selected value to the next page. Any ideas?