I have a Loop with checkbox values from database and when I check some box I need that the value passes to the input (without submit button);
<?php
while($row = $sth->fetch()) {
echo("<input type='checkbox' value='".$row['name']."'>".$row['name']."</option>");
}
echo('<input type="text" name="modelos" />');
?>
Thanks