subjectPage.php 427 B

1234567891011121314151617181920
  1. <main>
  2. <?php
  3. if (isset($_SESSION['subjectPanel'])) {
  4. addChapter("1");
  5. addChapter("2");
  6. addChapter("3");
  7. } else {
  8. header("location: ../logic/goBack.php");
  9. }
  10. function addChapter($name)
  11. {
  12. echo '<form action="/teacher/teacher.php" method="POST">
  13. <input type="submit" value="' . $name . '" name="chapterPanel"></form>';
  14. }
  15. ?>
  16. </main>