Server IP : 172.16.15.8 / Your IP : 18.222.56.71 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/ecabbott/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- Assignment 3a final layer All inputted varables (from the past two pages) come here on display --> <?php session_start(); $pass = $_SESSION['psw']; $_SESSION['psw'] = $pass; if ($pass != "ch7hw") print "ACCESS DENIED!"; else { ?> <CENTER> <FONT color=red> <H2> SURVEY RESULTS </H2> <HR> </FONT> <?php } //variables get brough over and assiged to a different name $NAME=$_SESSION['fullname']; $GENDER=$_SESSION['Gender']; $YEAR=$_SESSION['year']; $COURSE=$_SESSION['course']; //printing the variables print "Name: $NAME<BR>"; print "Gender: $GENDER<BR>"; print "Year: $YEAR<BR>"; print "Course: $COURSE<P>"; //assigning and printing survey results variables $q1asw=$_POST['Option1']; $q1comments=$_POST['comments1']; $q2asw=$_POST['Option2']; $q2comments=$_POST['comments2']; $q3asw=$_POST['Option3']; $q3comments=$_POST['comments3']; $q4asw=$_POST['Option4']; $q4comments=$_POST['comments4']; print "Question 1: This course was of great inerest from you.<BR>"; if ($q1asw == "g") print "Question 1 Response: Strongly Agree <P>"; if ($q1asw == "h") print "Question 1 Response: Agree <P>"; if ($q1asw == "i") print "Question 1 Response: Not Agree <P>"; print "Question 1 comments:<BR>"; print "$q1comments<P>"; print " <P>"; print "Question 2: The teacher had high hopes of what you will accomplish.<BR>"; if ($q2asw == "t") print "Question 2 Response: Strongly Agree <P>"; if ($q2asw == "r") print "Question 2 Response: Agree <P>"; if ($q2asw == "y") print "Question 2 Response: Not Agree <P>"; print "Question 2 comments:<BR>"; print "$q2comments<P>"; print "Question 3: The work done in this course was reasonable.<BR>"; if ($q3asw == "w") print "Question 3 Response: Strongly Agree <P>"; if ($q3asw == "v") print "Question 3 Response: Agree <P>"; if ($q3asw == "u") print "Question 3 Response: Not Agree <P>"; print "Question 3 comments:<BR>"; print " $q3comments<P>"; print "Question 4: You think that this course would benefit your major.<BR>"; if ($q4asw == "m") print "Question 4 Response: Strongly Agree <P>"; if ($q4asw == "n") print "Question 4 Response: Agree <P>"; if ($q4asw == "o") print "Question 4 Response: Not Agree <P>"; print "Question 4 comments:<BR>"; print "$q4comments<P>"; ?> <P> <A HREF=Assignmet_3a.html> Back to login page </A> </CENTER>