Here is my error: ![Image1](https://i.imgur.com/HSPghtX.png)

No matter what option I select, it takes the first one..

the options : ![Image2](https://i.imgur.com/vlIqNSK.png)

here is my POST code:

```
if(isset($_POST['addtherun'])) {

  if ((isset($_POST['fiftychecked'])) && (isset($_POST['selectedoption']))) {

    $rowchauffeur = mysqli_query($conn, "SELECT * FROM taxi_drivers");

    $userinfo = mysqli_fetch_array($rowchauffeur);
    $id = mysqli_real_escape_string($conn, $userinfo['id']);
    $prenom = mysqli_real_escape_string($conn, $userinfo['prenom']);
    $nomdefamille = mysqli_real_escape_string($conn, $userinfo['nomdefamille']);
    $numerodevoiture = mysqli_real_escape_string($conn, $userinfo['numerodevoiture']);
    $selectedoption = mysqli_real_escape_string($conn, $_POST['selectedoption']);

    $insert1 = mysqli_query($conn, "INSERT INTO taxi_fiftyandplus (prenom, nomdefamille, numerodevoiture, datedecreation) VALUES ('$prenom', '$nomdefamille', '$numerodevoiture', now())") or die (mysqli_error($conn));

    echo 'fifty is checked<br>';
  } else if (isset($_POST['hundredchecked']))  {
    echo 'hundred is checked<br>';
  } else if (isset($_POST['twohundredchecked'])) {
    echo 'two hundred is checked<br>';
  } else {
    echo 'Select a length<br>';
  }

}

```

and here is my form:

```
<form method="POST" action="index.php" >
          <div class="row">
              <div class="form-group col-md-3">
                <label>Chauffeur:</label>
                <!--  <div class="dropdown checkbox-menu allow-focus"> -->
      <!--  <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</button> -->

';

$rowchauffeur = mysqli_query($conn, "SELECT * FROM taxi_drivers");

print "<div class='dropdown checkbox-menu allow-focus'>
<button class='btn btn-secondary dropdown-toggle' type='button' id='dropdownMenu2' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>Dropdown</button>
<ul class='dropdown-menu checkbox-menu allow-focus'>
";
while( $row = mysqli_fetch_array($rowchauffeur))
print "

<li>
  <label> <input type='checkbox' class='sev_check2' name='selectedoption' > $row[id] $row[numerodevoiture] $row[prenom] $row[nomdefamille] </label>
  </li>
";
    print"  </ul></div>
</div>
</div>";

echo '

  <div class="form-check form-check-inline">
  <!-- <input type="hidden" name="fiftychecked" value="0"> -->
  <input type="checkbox" class="form-check-input sev_check" name="fiftychecked" id="s_fac">
  <label class="form-check-label" for="s_fac">50+</label>
</div>

<!-- Material inline 2 -->
<div class="form-check form-check-inline">
  <!-- <input type="hidden" name="twohundredchecked" value="0"> -->
    <input type="checkbox" class="form-check-input sev_check" name="hundredchecked" id="s_fac2">
    <label class="form-check-label" for="s_fac2">100+</label>
</div>

<!-- Material inline 3 -->

<div class="form-check form-check-inline">
  <!-- <input type="hidden" name="twohundredchecked" value="0"> -->
    <input type="checkbox" class="form-check-input sev_check" name="twohundredchecked" id="s_fac3">
    <label class="form-check-label" for="s_fac3">200+</label>
</div><br><br>

  <button type="submit" class="btn btn-primary" name="addtherun">Ajouter</button>
</form>

```

What I am expecting is the value that I select from the dropdown checkbox list is the actual value that should be INSERTED into the database.

Please don't mind the messy code.