Homework Solution: Your project folder needs to contain 2 files. You'll have an HTML page with a form that submits…

Need some PHP/HTML help here. Your project folder needs to contain 2 files. You'll have an HTML page with a form that submits 3 numbers to a web server. A PHP page on that web server will add the numbers, divide by 3, then return the average of the numbers to the user. The first file is a regular HTML page with an HTML form. The form needs 3 named text-boxes, a submit button, and a reset button. It should look something like this: The exact format is not that important, but you need these form element at a minimum. Also, we will assume the user actually enters numbers in the boxes and do not at this point need to validate the data. Your second file is a PHP page that will take the 3 numbers, add them together, then send the original 3 numbers and the average of the numbers back to the user along with a little text explaining what is what. The output to your user can be set up any way you want, but there should be a sentence that looks very much like this on the return trip. The average of 4, 5, and 6 is 5. You need to account for the fact that the numbers may be floating point numbers as well as integers. Don't worry about rounding the number at this point.
Show transcribed image textProgram to Return the Average of 3 numbers Enter 1st number. Enter 2ed number. Enter 3rd number Submit Reset

1)HTML Code which contains the form where we enter the number <html>

Deficiency some PHP/HTML aid here.

Your scheme folder deficiencys to comprehend 2 polishs. You’ll accept an HTML page with a mould that succumbs 3 gum to a work server. A PHP page on that work server allure infer the gum, disunite by 3, then recur the mean of the gum to the user.

The highest polish is a ordinary HTML page with an HTML mould. The mould deficiencys 3 named text-boxes, a succumb molehill, and a redetermined molehill. It should seem triton enjoy this:

The suitable mouldat is referable attributable attributable attributable that significant, excluding you deficiency these mould part at a narrowness. Also, we allure feign the user in-effect invades gum in the boxes and do referable attributable attributable attributable at this subject-matter deficiency to validate the grounds.

Your prevent polish is a PHP page that allure capture the 3 gum, infer them concertedly, then despatch the primary 3 gum and the mean of the gum end to the user concurrently with a weak passage explaining what is what. The output to your user can be determined up any practice you shortness, excluding there should be a judgment that seems very considerable enjoy this on the recur stumble.

The mean of 4, 5, and 6 is 5.

You deficiency to totality control the certainty that the gum may be incomplete subject-matter gum as well-mannered-mannered as integers. Don’t tantalize environing rounding the enumerate at this subject-matter.

Show transcribed representation passageProgram to Recur the Mean of 3 gum Invade 1st enumerate. Invade 2ed enumerate. Invade 3rd enumerate Succumb Reset

Expert Acceptance

1)HTML Order which comprehends the mould where we invade the enumerate

<html>

<title>::HTML Mould ::</title>

<body>

<mould action=”action.php” method=”post”>

<p><b>Program to Recur the Mean of 3 gum</b></p>

<p><input type=”text” name=”firstNumber” /> Invade 1st enumerate</p>

<p><input type=”text” name=”secondNumber” /> Invade 2nd enumerate</p>

<p><input type=”text” name=”thirdNumber” /> Invade 3rd enumerate</p>

<p><molehill type=”submit” value=”Submit”>Submit</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<molehill type=”reset” value=”Reset”>Reset</button>

</form>

</body>

</html>

HTML Output:

2)php order where we investigate the mean of invadeed 3 gum

<?php

// compose a variable
\$firstNumber=\$_POST[‘firstNumber’];
\$secondNumber=\$_POST[‘secondNumber’];
\$thirdNumber=\$_POST[‘thirdNumber’];

//calculating mean of three gum
\$avg=(\$firstEnumerate + \$secondEnumerate + \$thirdNumber)/ 3;

//displaying th mean
echo “The mean of \$firstNumber,\$secondEnumerate and \$thirdEnumerate is \$avg”.
?>