I have a select that pulls the name of a product.
I want you to select the product name via dropdown and automatically fill in an input with product code. The information is in a single table, in the id, id_produto, nome ,serial, log
case.
I can pull the data into the dropdown but I do not know how to bind an input with id_produto
.
I hope I have been able to pass on my doubt.
<select name="produto" id="produto">
<?php $sql = mysql_query("select * from produto");
while ($row = mysql_fetch_array($sql)) {
print '<option value="'.$row['nome'].'">'.$row['nome'].'</option>';
}
?>
</select><br/>