actually, you already have the hidden element in place:
<?php if ($row_rsSize['ontab'] != "0") { // Show if recordset not empty ontab will not show menu if only short tab, use size to show short tab in dropdown ?>
<label class="style2">Tab:</label>
<select name="winkee_1_Tab_Add">
<option value="">Please Select Tab</option>
<?php
do {
?>
<option value="<?php echo $row_rsSize['inventoryid']?>"><?php echo $row_rsSize['tab']?> stock <?php echo $row_rsSize['quantity']?>Id <?php echo $row_rsSize['inventoryid']?>num <?php echo $row_rsSize['item_num']?>
</option>
<?php
} while ($row_rsSize = mysql_fetch_assoc($rsSize));
$rows = mysql_num_rows($rsSize);
if($rows > 0) {
mysql_data_seek($rsSize, 0);
$row_rsSize = mysql_fetch_assoc($rsSize);
}
?>
</select>
<p>
<?php } else { // Show if recordset not empty ?>
<input type="hidden" name="winkee_1_Size_Add" value="<?php echo $row_rsSize['inventoryid']?>" />
<?php }?>
it's just named wrong. change:
<?php } else { // Show if recordset not empty ?>
<input type="hidden" name="winkee_1_Size_Add" value="<?php echo $row_rsSize['inventoryid']?>" />
<?php }?>
to:
<?php } else { // Show if recordset not empty ?>
<input type="hidden" name="winkee_1_Tab_Add" value="<?php echo $row_rsSize['inventoryid']?>" />
<?php }?>