Good evening, mates
I am making a form to request a code or a name, so that I go and search in a database. To make it easier for the user, I would like to give you the option to write them down or look for them in a drop-down list directly brought from the DB data My question is.
Is it possible that having the entry fields without the need to make 2 forms? The idea is that whoever receives only the one that contains a value, but passes the 2
I add the code
<form method='get' action='consulta.php'>
<input name="equipo" type="text" />
<select name="equipo">
<option selected="selected"></option>
<?php while($array= mysql_fetch_array($consulta)){?>
<option value="<?php echo $array['codigo']?>">
<?php echo $array['codigo']." | ". $array['nombre']?></option> <?php }?>
</select>
<input type='submit' value='Consultar'>
</form> <?php } ?>