I have several drop down lists in a table, I am trying to retrive the value of the drop down list if its not 0.
I have a table of items each item has the drop down list. Below is how I create the drop down list, I give it the tableid as a name because this is a unique identifier for the particular product.
echo "<td><select name=". $row['goosedown_id'] .">
<option value=''> 0 </option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
</select>
</td>";
Then once the form is submitted I am trying to just print any values i can... cause im not sure how to proceed... I do this like so.
$goosedown_id = check_input($_POST['goosedown_id']);
//..
goose down = $goosedown_id
I am hoping to be able to print out the associated values or calculate the price based off other items in the table i.e. price etc. but I am hoping someone can help me with trying to access the items that are no 0 first.