How are determining whether the item needs a size drop down or not? Figuring this out is the first step to creating the if statement.
For an example, I will assume you have a category column in your recordset that is being used, and if the category equalls "shirts" or "pants" you want to show a select list of sizes, all others, use a hidden form element set to "n/a"
<?php if($row_RecordsetName['ColumnName'] == "shirts" || $row_RecordsetName['ColumnName'] == "pants") { ?>
<select name="size" id="size">
<option value="s">Small</option>
<option value="m">Medium</option>
<option value="l">large</option>
<option value="xl">X large</option>
<option value="xxl">XX Large</option>
</select>
<?php } else { ?>
<input name="size" type="hidden" id="size" value="n/a" />
<?php } ?>