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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/asbright/www/courseSurveyForm2.php
<?php session_start(); ?>
<!-- courseSurveyForm2.php -->
<?php
                $pass = $_SESSION['psw'];
                if($pass != "ch7hw")
				{
?>
				<script type="text/javascript">
                <!--
                        window.location = "courseSurveyLogin.php"
                -->
                </script>
                <html>
                <head>
                <title>Error Page</title>
                <center>
                <h1>Error Page</h1>
                </center>
                </head>
                 <?php
                         include("navbar.php");
                ?>

                <div style="text-align: center">
                <br/><br/><br/><br/>
                <button><a href="courseSurveyLogin.php">Go back</a></button>
                </div>
                </html>
<?php
		}
		else
		{
				$userName = $_POST['name'];
		        $course = $_POST['course'];
		        $gender = $_POST['GENDER'];
		        $grade = $_POST['GRADE'];
		        $_SESSION['name'] = $userName;
                $_SESSION['course'] = $course;
                $_SESSION['gender'] = $gender;
                $_SESSION['grade'] = $grade;
?>

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styling.css">
<title>
Course Survey
</title>
<h1>
Course Survey Questions
</h1>
</head>
<?php
	include("navbar.php");
?>
<body>
<div style="text-align: center">
<h3 style="margin-top: 40px; margin-bottom: 40px; color: white">
Answer the questions to the best of your ability.
</h3>
<form action=courseSurveyResults.php method=post>
<fieldset>
<legend>
I had enough time to do my homework.
</legend>
<div>
<input class="radio" type=radio id="question1a" name=Q1 value=1A checked><label for="question1a">Strongly Agree</label>
<input class="radio" type=radio id="question1b" name=Q1 value=1B><label for="question1b">Agree</label>
<input class="radio" type=radio id="question1c" name=Q1 value=1C><label for="question1c">Disagree</label>
</div>
</fieldset>
<fieldset style="margin-top: 20px">
<legend>
The professor was able to teach the class effectively.
</legend>
<div>
<input class="radio" type=radio id="question2a" name=Q2 value=2A checked><label for="question2a">Strongly Agree</label>
<input class="radio" type=radio id="question2b" name=Q2 value=2B><label for="question2b">Agree</label>
<input class="radio" type=radio id="question2c" name=Q2 value=2C><label for="question2c">Disagree</label>
</div>
</fieldset>
<fieldset style="margin-top: 20px">
<legend>
I was able to understand all of the coursework.
</legend>
<div>
<input class="radio" type=radio id="question3a" name=Q3 value=3A checked><label for="question3a">Strongly Agree</label>
<input class="radio" type=radio id="question3b" name=Q3 value=3B><label for="question3b">Agree</label>
<input class="radio" type=radio id="question3c" name=Q3 value=3C><label for="question3c">Disagree</label>
</div>
</fieldset>
<fieldset style="margin-top: 20px">
<legend>
The tests were not too hard
</legend>
<div>
<input class="radio" type=radio id="question4a" name=Q4 value=4A checked><label for="question4a">Strongly Agree</label>
<input class="radio" type=radio id="question4b" name=Q4 value=4B><label for="question4b">Agree</label>
<input class="radio" type=radio id="question4c" name=Q4 value=4C><label for="question4c">Disagree</label>
</div>
</fieldset>
<div style="margin-top: 40px">
Additional Comments: <textarea rows = 5 cols = 50 name=comments></textarea>
</div>
<div style="margin-top: 40px">
<input type=submit value="Submit Form">
<input type=reset name="Reset Form">
</div>
</div>
</form>
</body>
</html>

<?php
		}
?>

Stv3n404 - 2023