Server IP : 172.16.15.8 / Your IP : 52.14.110.171 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/tmhoward/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- File name: Assignment3b.php --> <?php session_start(); ?> <?php $name = $_POST['first']; $_SESSION['v1'] = $name; ?> <p> <?php $class = $_POST['start']; $_SESSION['v2'] = $class; ?> <p> <?php $level = $_POST['grade']; $_SESSION['v3'] = $level; ?> <p> <CENTER> <H2> Select CS courses for which to register: </H2> <HR> <FORM action=Assignment3bForm.php method=post> <?php $prefer = $_POST["prefer"]; $menu = array("CS-112", "CS-212", "CS-310", "CS-311", "CS-380","CS-440","CS-480"); $bs = 1; print "Please indicate your favorite - <BR>"; for($i=0; $i<count($menu); $i++) { print "<INPUT TYPE=checkbox name=prefer[] value=$i> $menu[$i]"; if($i == $bs) print "<B> </B>"; print "<BR>"; } ?> <p> <?php $prefer1 = $_POST["prefer1"]; $menu1 = array("MATH-135", "MATH-136", "MATH-171", "MATH-172","MATH-271"); $bs = 1; print "Please indicate your favorite - <BR>"; for($i=0; $i<count($menu1); $i++) { print "<INPUT TYPE=checkbox name=prefer1[] value=$i> $menu1[$i]"; if($i == $bs) print "<B> </B>"; print "<BR>"; } ?> <p> <INPUT type=submit value=Submit> <INPUT type=reset value=Reset> </FORM> </CENTER>