Server IP : 172.16.15.8 / Your IP : 3.142.124.119 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/rkelly/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<? session_start();?> <!-- Action: present a Web-based exam form with 4 questions with following requirements - i) each has 4 choices labeled A, B, C, and D --> <?php $pass = $_POST['pass']; $_SESSION['psw'] = $pass; if($pass != "hw21") print "go away."; else { ?> <CENTER> <H2> Web Exam Quesiton </H2> <HR> <FORM action= exam2.php method=post> What color is a stop sign?:<P> A. Red <INPUT type=radio name=q1 value=t><P> B. Pink <INPUT type=radio name=q1 value=f><P> C. Blue <INPUT type=radio name=q1 value=f><P> D. Yellow<INPUT type=radio name=q1 value=f><P> <P> How many fingers are on 2 hands?:<P> A. 3<INPUT type=radio name=q2 value=f><P> B. 10 <INPUT type=radio name=q2 value=t2><P> C. 7 <INPUT type=radio name=q2 value=f><P> D. 1 <INPUT type=radio name=q2 value=f><P> <P> What are baby rabbits called?:<P> A. baby bunnies <INPUT type=radio name=q3 value=f><P> B. calves <INPUT type=radio name=q3 value=f><P> C. kits <INPUT type=radio name=q3 value=t3><P> D. chicks <INPUT type=radio name=q3 value=f><P> <P> What mascott is on the Frosted Flakes cereal box?:<P> A. wolf<INPUT type=radio name=q4 value=f><P> B. bird<INPUT type=radio name=q4 value=f><P> C. bee<INPUT type=radio name=q4 value=f><P> D. tiger<INPUT type=radio name=q4 value=t4><P> <P> <INPUT type=submit value="Submit Form"> <INPUT type=reset value="Reset Form"> </FORM> <?php } ?>