Tell me how to bind the user input to the checkbox? The user selects checkboxes for the sites and enters some value into the field, then sends the form how to link and catch each value to each site for further writing to the database. The value in value is transmitted along with the checkbox, but there is no way to link a third-party input. Code:

<div id="panel" class="multiselect"></br> <?php $rr = mysql_query("SELECT * FROM phones"); while ($ww = mysql_fetch_array($rr)) { ?> <label><input type="checkbox" name="<?= $ww['id'] ?>" value=""/><?php echo $ww['phone'] . "->" . $ww['comments'] ?> </label> <input type="text" id="taxes" size="20" placeholder="цена заявки\звонка"></br></br> <?php } ?> </div> 

    1 answer 1

     <input type="text" name="taxes[<?= $ww['id'] ?>]" size="20" placeholder="цена заявки\звонка"> 

    And you will taxes array of taxes with keys identifying sites