Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <link rel="stylesheet" type="text/css" href="estilo.css" media="">
- </head>
- <body>
- <form class="form-signin" action="" method="POST">
- Ingrese Cantidad de Notas: <input type="text" name="txtcantnot" class="form-control" placeholder="">
- <input type="submit" class="btn btn-lg btn-primary btn-block" name="btn" value="Listar">
- </form>
- <form action="listanotas.php" method="POST">
- <?php
- for ($i=0; $i < $_POST["txtcantnot"]; $i++) {
- echo "Notas$i<input type='text' name = notas$i>.<br>";
- }
- ?>
- <input type="submit" name="" value="Procesar">
- </form>
- </body>
- </html>
- <?php
- if(isset($_POST["notas"])){
- echo $_POST["notas"];
- }else{
- echo "Seleccione una de las opciones.<br>";
- }
- echo"Listado de Notas<br>";
- for ($i=0; $i < $_POST["txtcantnot"]; $i++) {
- echo "El valor es".$_POST["notas$i"]."<br>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement