In generating a select tag for a Boolean value, I use the following code:
<select name="name" id="id">
<option value="0"<?php if(empty($value)): ?> selected="selected"<?php endif; ?>>Off</option>
<option value="1"<?php if($value): ?> selected="selected"<?php endif; ?>>Off</option>
</select>
So, the question is, will this map correctly, so that at no point, both the options will have a selected="selected" property?