Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/11/2008, 10:40
Avatar de anticic
anticic
 
Fecha de Ingreso: noviembre-2008
Mensajes: 21
Antigüedad: 15 años, 5 meses
Puntos: 0
Un select de 5000 options

Hola estoy intentando hacer un selecta de 5000 options, por lo tanto realicé un bucle for. Algo estoy haciendo mal, muyyyy mal. Les paso el código
<?php

echo('
<form action="/tabla.php" method="post">Elija un número :<select name="num" size="3"><br>

for($i=1;$i<=50000;$i=$i+1)
{

<option value="$i">$i</option>;
}

<input type="submit" value="Enviar">

</select>
</form>
');
?>

Me siento taaaaaaaan ignorante
Gracias por la ayuda
Ana