Server IP : 172.16.15.8 / Your IP : 18.117.71.213 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/exventura/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); // p.45 // File name: LockedWebExam2.html $pass = $_POST['pass']; $_SESSION['psw'] = $pass; if($pass != "hw21") { print "go away."; } else { ?> <center> <H2> Locked Web Exam Form </H2> <HR> <FORM action=LockedWebExam3.php method=post> 1. What is the first weekday? <INPUT type=radio name=q1 value=t> A. Monday <INPUT type=radio name=q1 value=f> B. Tuesday <INPUT type=radio name=q1 value=f> C. Wednesday <INPUT type=radio name=q1 value=f> D. Thursday <P> 2. What is our university's mascot? <INPUT type=radio name=q2 value=f2> A. Polar Bear <INPUT type=radio name=q2 value=t2> B. Marlin <INPUT type=radio name=q2 value=f2> C. Killer Whale <INPUT type=radio name=q2 value=f2> D. Dolphin <P> 3. Which color is the darkest? <INPUT type=radio name=q3 value=f3> A. Yellow <INPUT type=radio name=q3 value=f3> B. Pink <INPUT type=radio name=q3 value=t3> C. Brown <INPUT type=radio name=q3 value=f3> D. Lime <P> 4. Which animal has 4 legs? <INPUT type=radio name=q4 value=f4> A. Spider <INPUT type=radio name=q4 value=f4> B. Crane <INPUT type=radio name=q4 value=f4> C. Penguin <INPUT type=radio name=q4 value=t4> D. Elephant <P> <INPUT type=submit value="Submit Form"> <INPUT type=reset value="Reset Form"> </FORM> </CENTER> <?php } ?>