Server IP : 172.16.15.8 / Your IP : 3.142.53.151 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_2session.php $stuName = $_POST['stuName']; $_SESSION['stuName']= $stuName; $gender = $_POST['gender']; $_SESSION['gender']= $gender; $grade = $_POST['grade']; $_SESSION['grade']= $grade; ?> <center> <H2> Student Registration Form </H2> <form action=assignment3_2sessionb.php method=post> <?php $cs = array("CS 112", "CS 212", "CS 311", "CS 380", "CS 440", "CS 480"); print "Select Computer Science Courses: <BR>"; for($i=0; $i<count($cs); $i++) { print "<INPUT TYPE=checkbox name=course1[] value=$i> $cs[$i]"; print "<BR>"; } $math = array("Math 135", "Math 136", "Math 171", "Math 172", "Math 271"); print "Select Math courses: <BR>"; for($k=0; $k<count($math); $k++) { print "<INPUT TYPE=checkbox name=course2[] value=$k> $math[$k]"; print "<BR>"; } ?> <p> <INPUT type=submit value=Submit> <INPUT type=reset value=Reset> </FORM> </center>