Server IP : 172.16.15.8 / Your IP : 3.144.115.125 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/rlbarner/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); /** File Name: surveyactionc.php Author: Regina Barner Date: 19 February 2013 Instructor: Dr. Wang Goal: Show the user the survey form and collect their answers to the questions and additional comments. */ $name = $_POST['yourname']; $_SESSION['yourname'] = $name; $gender = $_POST['gender']; $_SESSION['gender'] = $gender; $grade = $_POST['grade']; $_SESSION['grade'] = $grade; $course = $_POST['course']; $_SESSION['course'] = $course; $pw = $_SESSION['password']; $_SESSION['password'] = $pw; if($pw != "hw3b") print "Access denied.<BR>"; else { ?> <BODY BGCOLOR="#D9D9F3"> <TITLE>Web Survey Questionnaire</TITLE> <FONT FACE="Sylfaen"> <CENTER> <H2>Web Survey Questionnaire</H2> <HR> Indicate your opinion to the following questions.<BR> <Form action=surveyactiond.php method=post> <U>Question 1</U>: At the end of the course, I know more about the subject than I did when I entered. <BR> <INPUT type=radio name=answer1 value=sagree> Strongly Agree <INPUT type=radio name=answer1 value=agree> Agree <INPUT type=radio name=answer1 value=disagree> Disagree <BR><BR> <U>Question 2</U>: The professor used effective teaching methods to convey the course content. <BR> <INPUT type=radio name=answer2 value=sagree> Strongly Agree <INPUT type=radio name=answer2 value=agree> Agree <INPUT type=radio name=answer2 value=disagree> Disagree <BR><BR> <U>Question 3:</U> The professor tested me on the course content regularly. <BR> <INPUT type=radio name=answer3 value=sagree> Strongly Agree <INPUT type=radio name=answer3 value=agree> Agree <INPUT type=radio name=answer3 value=disagree> Disagree <BR><BR> <U>Question 4:</U> The course was valuable to me. <BR> <INPUT type=radio name=answer4 value=sagree> Strongly Agree <INPUT type=radio name=answer4 value=agree> Agree <INPUT type=radio name=answer4 value=disagree> Disagree <BR><BR> Use the space provided below for additional comments about the course. <BR> <textarea rows="7" cols"30" name="comments[]" wrap="physical">Additional Comments</textarea> <BR><BR> <INPUT type=submit value=Submit> <INPUT type=reset value=Reset> </Form> <?php } ?> <HR> <A HREF=index.html>Index</A> </CENTER> </FONT> </BODY>