Here is my code for PHP that I have so far
<?php
$a=count(func_num_args());
$arg=func_get_args();
$Mean_grade=(array_sum($arg))/$a;
$post=$_POST['Mean_grade'];
$explode=explode(",",$post);
echo "<h1>"."Your average of all grades is " . $Mean_grade . "</h1>";
?>
Here is the code for my HTML interface page:
<html> <head> <title>Was your test average the meanest?</title> </head> <body> <h1>Is your average mean?</h1> <form ACTION="PHPfile.php" Method="Post"> <input type="text" name="Mean_grade"></input> <br><input type="submit" value="SUBMIT"></input> </form> </body> </html>
Am I on the right track/what do I need to do to get the right output?
This post has been edited by Dormilich: 04 October 2012 - 10:54 PM

New Topic/Question
Reply



MultiQuote




|