Default value

Now implemented like this:

<select name="s2">
<option disabled><?=$_POST['s2']?></option>
<?=include 'select_val.php'?>
</select>

Need to work so that the default value (in my case, the first option) does not appear in the select list when it expands, and the first element is an empty string. Who can advise?

<option selected> - -  . (((

Answer 1, authority 100%

<select name="s2">
<option value="0" selected></option> 
<option disabled><?=$_POST['s2']?></option> 
<?=include 'select_val.php'?> 
</select>

Answer 2, authority 50%

<select onfocus="hideDef(this)" onblur="showDef(this)">
<option value="<?=$defaultValue?>"><?=$defaultText?></option>
<?=include 'select_val.php'?>
</select>
<script>
var defVal = "<?=$defaultValue?>";
var defTxt = "<?=$defaultText?>";
function hideDef(x){
    x.options[0].text = '';
}
function showDef(x){
    if(x.value == defVal){
        x.options[0].text = defTxt;
    }
}
</script>

Well, at the very least, you can just not display $defaultText. Then the default value will work, but the user won’t see it.