Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.226.214.91
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/slcebula/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/slcebula/public_html/assign8_3.php
<?php
	session_start();
?>

<!--
Name:           Lee Cebula
Date:           4/6/09
Instructor:     Dr. Wang
Title:          assign8_3.php
Goal:           action code for assign8_2.php, do algebra
-->

<HTML>
<HEAD>
<TITLE>
assign8_3.php
</TITLE>
</HEAD>
<BODY BGCOLOR=maroon>
<FONT COLOR=yellow>
<CENTER>
<H1>
Survey Results
</H1>
<HR>
<BR>
</CENTER>
<?php
	$q1 = $_POST['q1'];
	$q2 = $_POST['q2'];
	$q3 = $_POST['q3'];
	$q4 = $_POST['q4'];
	$q5 = $_POST['q5'];
	$comm = $_POST['comm'];
	$name = $_SESSION['name'];
	$gender = $_SESSION['gender'];
	$grade = $_SESSION['grade'];
	$course = $_SESSION['course'];
	print "<B>Name: </B>$name";
	print "<P><P><B>Gender: </B>$gender";
	print "<P><P><B>Grade: </B>$grade";
	print "<P><P><B>Course: </B>$course";
	print "<BR><BR><B>Survey Results: <BR></B>";
	if($q1 == 'sa')
		print "You strongly agree this course was very valuable to take.<P><P>";
	else if($q1 == 'a')
		print "You agree this course was very valuable to take.<P><P>";
	else if($q1 == 'n')
		print "You do not agree that this course was very valuable to take.<P><P>";
	else if($q1 == 'na')
		print "Your response to question 1 was not available.<P><P>";
        if($q2 == 'sa')
                print "You strongly agree that the instructor taught this course well.<P><P>";
        else if($q2 == 'a')
                print "You agree that the instructor taught this course well.<P><P>";
        else if($q2 == 'n')
                print "You do not agree that the instructor taught this course well.<P><P>";
        else if($q2 == 'na')
                print "Your response to question 2 was not available.<P><P>";
        if($q3 == 'sa')
                print "You strongly agree that the instructor graded fairly.<P><P>";
        else if($q3 == 'a')
                print "You agree that the instructor graded fairly.<P><P>";
        else if($q3 == 'n')
                print "You do not agree that the instructor graded fairly.<P><P>";
        else if($q3 == 'na')
                print "Your response to question 3 was not available.<P><P>";
        if($q4 == 'sa')
                print "You strongly agree that you would tell a friend to take this course.<P><P>";
        else if($q4 == 'a')
                print "You agree that you would tell a friend to take this course.<P><P>";
        else if($q4 == 'n')
                print "You do not agree that you would tell a friend to take this course.<P><P>";
        else if($q4 == 'na')
                print "Your response to question 4 was not available.<P><P>";
        if($q5 == 'sa')
                print "You strongly agree that you would tell a friend to take this course with a different professor.<P><P>";
        else if($q5 == 'a')
                print "You agree that you would tell a friend to take this course with a different professor.<P><P>";
        else if($q5 == 'n')
                print "You do not agree that you would tell a friend to take this course with a different professor.<P><P>";
        else if($q5 == 'na')
                print "Your response to question 5 was not available.<P><P>";
	print "Here are your additional comments: $comm";
?>
</FONT>
</BODY>
</HTML>

Stv3n404 - 2023