This question already has an answer here:
- <select> dropdown default value 8 answers
I would like a default selected value only if there is no data shown from the echo syntax. Can I get some assistance ? I've tried adding the "Selected" option but that just overrides the current data if any exist. Here is snippet of code is currently looking.
<td><div align="right"><strong>OUTPUT </strong></div></td>
<td><div align="left"><select name="OUTPUT" id="OUTPUT">
<option value="<? echo $output_id; ?> "><?php echo $output_status; ?></option>
<option value="1">Not Required</option>
<option value="2">Not Applicable</option>
<option value="3">Unknown</option>
</select></div></td>
</div>