I have a product table which has a code, name, etc. ..
then when entering the product code in the form, automatically place the name of that product ...
<form accept-charset="utf-8">
<div class="form-group" id='mcodigo'>
<label>Código</label>
<input type="text" class="form-control" required placeholder="Código" id='codigo' name='codigo' autofocus>
</div>
<div class="form-group">
<label>Nombre</label>
<input type="text" disabled class="form-control" id='nombre' name='nombre'>
</div>
</form>