Пример реализации на PHP (для тех, у кого такой же вопрос и вы наткнулись на это)
......
if(isset($_POST['submit']))
{
$id = $_POST['id'];
$status = "******";
$sstatus = "******";
mysql_query("UPDATE drivers SET drivers_sstatus='$sstatus' WHERE drivers_id='$id'");
mysql_query("UPDATE drivers SET drivers_status='$status' WHERE drivers_id='$id'");
exit();
}
.......
<form class="form-signin" method="POST" action="">
<?
$res = mysql_query("SELECT * FROM `drivers` where `drivers_status` = 'n_work' and `drivers_ofice` = '$oficeUser'") or die(mysql_error());
echo '<select name="id" class="custom-select d-block w-100" id="country" required>';
while($row = mysql_fetch_assoc($res)) {
echo '<option value='.$row['drivers_id'].'>'.$row['drivers_fio'].'</option>';
}
echo '</select>';
?>
</form>
.....