Advertisement
xlujiax

Prueba

Sep 19th, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title></title>
  5.     <link rel="stylesheet" type="text/css" href="estilo.css" media="">
  6. </head>
  7. <body>
  8. <form class="form-signin" action="" method="POST">
  9.     Ingrese Cantidad de Notas: <input type="text" name="txtcantnot" class="form-control" placeholder="">
  10.     <input type="submit" class="btn btn-lg btn-primary btn-block" name="btn" value="Listar">
  11. </form>
  12. <form action="listanotas.php" method="POST">   
  13.         <?php
  14.             for ($i=0; $i < $_POST["txtcantnot"]; $i++) {
  15.                 echo "Notas$i<input type='text' name = notas$i>.<br>";
  16.             }
  17.         ?>
  18.         <input type="submit" name="" value="Procesar">
  19. </form>
  20.  
  21. </body>
  22. </html>
  23.  
  24. <?php
  25.     if(isset($_POST["notas"])){
  26.         echo $_POST["notas"];
  27.     }else{
  28.         echo "Seleccione una de las opciones.<br>";
  29.     }
  30.     echo"Listado de Notas<br>";
  31.    
  32.     for ($i=0; $i < $_POST["txtcantnot"]; $i++) {
  33.         echo "El valor es".$_POST["notas$i"]."<br>";
  34.     }
  35.  
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement