Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pl">
  3. <head>
  4. <title>Test</title>
  5. <meta charset="UTF-8" />
  6. <?php
  7. require_once("pytania.php");
  8. ?>
  9. </head>
  10. <body>
  11. <?php
  12. echo '<form action="sprawdzenie.php" method="post">';
  13. for ($i=0;$i<10;$i++){
  14. echo 'Pytanie ' .$pytania[$i][0]. ' ' .$pytania [$i][1].'<br/>';
  15. echo '<input type="radio" name="pyt'.$pytania[$i][0].'" value="odp1"> '.$pytania[$i][2].'<br/>';
  16. echo '<input type="radio" name="pyt'.$pytania[$i][0].'" value="odp2"> '.$pytania[$i][3].'<br/>';
  17. echo '<input type="radio" name="pyt'.$pytania[$i][0].'" value="odp3"> '.$pytania[$i][4].'<br/>';
  18.  
  19. }
  20.  
  21. echo '<input type="submit" value="Gotowe">';
  22. echo '</form>';
  23. ?>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement