Intento usar el texto de entrada para la opción de selección y encontré este script de google
<input type="text" list="airports" name="airports"> <datalist id="airports"> <option value="Berlin"> <option value="Los Angeles"> <option value="Moscow"> <option value="Paris"> </datalist> <input type="submit" value="confirm">Aquí mi guión antes:
<?php $first="select * from members"; $two=mysql_query($first)or die("You Die!"); ?> <select> <? while($three=mysql_fetch_array($two)){ ?> <option value=<? echo $three['firstname'];?><? echo $three['firstname'];?></option> <? } ?> </select>Cuando los combino:
<?php $first="select * from members"; $two=mysql_query($first)or die("You Die!"); ?> <select> <input type="text" list="firstname" name="firstname"> <datalist id="firstname"> <? while($three=mysql_fetch_array($two)){ ?> <option value=<? echo $three['firstname'];?>><? echo $three['firstname'];?></option> <? } ?> </datalist> </select>no funciona t_t"
prueba esto:
<?php $first="select * from members"; $two=mysql_query($first)or die("You Die!"); ?> <select> <input type="text" list="firstname" name="firstname"> <datalist id="firstname"> <? while($three=mysql_fetch_array($two)){ ?> <option value="<? echo $three['firstname'];?>"> <? } ?> </datalist> </select>