Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/03/2012, 18:57
learning_php
 
Fecha de Ingreso: septiembre-2010
Mensajes: 19
Antigüedad: 13 años, 7 meses
Puntos: 0
Busqueda embebiendo php con html

hola tengo que realizar un formulario que contenga 6 campos.. de esta manera

Código PHP:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
  
  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
  <title>bingo</title>

  
</head><body>
Bingo<br>
insertar 2 digitos del 0 al 20 <br />
<form method="post" action="result.php">

<?php for($i=0;$i<6;$i++) 

echo 
"<input type=text name=numero_$i>" ."<br>";
}
?>
<input type="submit" value="enviar">


</form>
<br>

<br>
</body></html>
los campos se crean pero nose si esta es la manera de embeber codigo php y html.. cualquier sugerencia .. gracias