<form method = "post">
<input type="text" value="" list="phpoptions" name = "phpoptions[]" />
<datalist id="phpoptions">
<?php foreach ($arr as $key=>$value){
echo "<option value = '$value'></option>";
}
?>
</datalist>
<?php $selphp = mysqli_query ($conn, "SELECT options FROM *** WHERE host = '$phpname'");
while ($arrdataphp = mysqli_fetch_array($selphp)) {
echo '<br><input value = "'.$arrdataphp['options'].'" name = "phpoptions[]" >';
}?>
<input type = "submit" name = "savephp" value = "Сохранить настройки">
</form>
if (isset($_POST['savephp'])) {
$phpname = $_SESSION['phpedit'];
$post = $_POST['phpoptions[]'];
foreach ($post as $key => $value) {
echo "Ключ: $key; Значение: $value<br />\n";
}