0
I am developing a registration form and added a Form-Select field to know what the Position of employees (Secretary / Advisor) company. However, when selecting the option others would like to enable a field for manual typing of the post.
*CODE
<div class="mb-3 col-sm-3">
        <label for="cargo">Cargo</label>
            <select class="form-select" name ="cargo">
            <option value="1">Secretário</option>
            <option value="2">Assessor</option>
            <option value="3">Outros</option>
        </select>
</div>
if ($_POST["cargo"] == 3){
echo                   
    <label for="3"></label>
    <input type="text" class="form-control" name ="3">
    }
						
Thank you very much for your help.
– Caio Filipe