Server IP : 172.16.15.8 / Your IP : 18.221.183.34 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/brmorrison/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); // // File name: sessionexam.php $pass = $_POST['pass']; //DEBUG //print "<P> Password: $pass. <HR>"; $_SESSION['psw'] = $pass; if($pass != "hw21") print "go away."; else { ?> <CENTER> <H2> Web Exam Form </H2> <HR> <FORM action=sessionscoreexam.php method=post> 1. How many questions are on this exam? <INPUT type=radio name=q1 value=a checked> Four <INPUT type=radio name=q1 value=b> Three <INPUT type=radio name=q1 value=c> Two <INPUT type=radio name=q1 value=d> One <P> 2. Which class is this for? <INPUT type=radio name=q2 value=a checked> Cs111 <INPUT type=radio name=q2 value=b> Cs389 <INPUT type=radio name=q2 value=c> Cs410 <INPUT type=radio name=q2 value=d> Cs212 <P> 3. What is the color of the sky? <INPUT type=radio name=q3 value=a checked> Red <INPUT type=radio name=q3 value=b> Green <INPUT type=radio name=q3 value=c> Blue <INPUT type=radio name=q3 value=d> Purple <P> 4. What animal barks? <INPUT type=radio name=q4 value=a checked> Cow <INPUT type=radio name=q4 value=b> Cat <INPUT type=radio name=q4 value=c> Frog <INPUT type=radio name=q4 value=d> Dog <P> <INPUT type=submit value="Submit Form"> <INPUT type=reset value="Reset Form"> </FORM> </CENTER> <?php } ?>