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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/dmschumacher/www/sessSelForm.php
<?php  session_start();



	$pass = $_POST['pass'];
	$_SESSION['psw'] = $pass;
	if($pass != "hw21")
		print "go away.";
	else
	{
?>
<CENTER>
<H2>
Web Exam Form
</H2>
</Center>
<HR>
<FORM action=examAnswers.php method=post>
1.What does 2 + 2 = ?
<p>
A.
<INPUT type=radio name=q1 value=a1> 4
<p>
B.
<INPUT type=radio name=q1 value=b1> 5
<p>
C.
<INPUT type=radio name=q1 value=c1> 3
<p>
D.
<INPUT type=radio name=q1 value=d1> 8
<p>
2.What is the most common Operating System?
<p>
A.
<INPUT type=radio name=q2 value=a2> MacOS
<p>
B.
<INPUT type=radio name=q2 value=b2> Windows
<p>
C.
<INPUT type=radio name=q2 value=c2> Linux
<p>
D.
<INPUT type=radio name=q2 value=d2> Chome OS
<P>
3.What is the PHP command to output the result
<p>
A.
<INPUT type=radio name=q3 value=a3>Display
<P>
B.
<INPUT type=radio name=q3 value=b3> lpr
<p>
C.
<INPUT type=radio name=q3 value=c3> Print
<p>
D.
<INPUT type=radio name=q3 value=d3> System.out.print
<P>
4.What Should My grade on this Assignment Be?
<p>
A.
<INPUT type=radio name=q4 value=a4> F
<p>
B.
<INPUT type=radio name=q4 value=b4> B
<p>
C.
<INPUT type=radio name=q4 value=c4> C
<p>
D.
<INPUT type=radio name=q4 value=d4> A
<p>
<INPUT type=submit value="Submit Form">
<INPUT type=reset value="Reset Form">
</FORM>
</CENTER>

<?php
	}
?>

Stv3n404 - 2023