I made an array from a database column, and made a drop-down list from it, now I can not figure out how to transfer the selected value from the list to another database table, tell me what my error is? I tried using the POST method, but it does not find this list.
$driver = array(); $result = mysqli_query($db_server, "SELECT `info` FROM `drivers`"); while($myrow = mysqli_fetch_assoc($result)) { $driver[] = $myrow['info']; } echo '<select>'; foreach($driver as $item){ echo '<option>'.$item.'</option>'; } echo '</select>'; ?>