hercioneto

Exercicio5 - index.html

Apr 15th, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <!-- index.php -->
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6.     <title>Cadastro Notas</title>
  7. </head>
  8. <body>
  9.     <form action="calcularNotas.php" method="POST">
  10. <?php for ($x=1; $x <= 5; $x++) {
  11.     ?>
  12. <div>Aluno <?php echo $x; ?></div>
  13.  
  14. <?php for ($i=1; $i <= 3; $i++) {
  15.    
  16.     ?>
  17. <div>Nota <?php echo $i; ?>: <br><input type="text" name="nota<?php echo $i; ?>_S<?php echo $x; ?>"></div>
  18.  
  19. <?php } ?>
  20. <div><hr></div>
  21. <?php } ?>
  22. <div><input type="submit" name="enviar" value="Enviar"></div>
  23. </form>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment