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>'; ?> 
  • take POST by name select. $ _POST ['select_name']. Koterova read. - Jean-Claude
  • Thanks for the advice on the necessary literature, the problem was solved by a series of random manipulations, until the same POST stubbornly refused to take the data. - Pavel Kakhanov
  • You can also watch completely that the post contains print_r ($ _ POST), but even better is $ _REQUEST - Jean-Claude
  • @PavelKahanov add a solution to the text of the question, so that people facing the same problem could see it - rjhdby

0