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
1)HTML Order which comprehends the mould where we invade the enumerate
<title>::HTML Mould ::</title>
<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> <molehill type=”reset” value=”Reset”>Reset</button>
2)php order where we investigate the mean of invadeed 3 gum
// compose a variable
//calculating mean of three gum
$avg=($firstEnumerate + $secondEnumerate + $thirdNumber)/ 3;
//displaying th mean
echo “The mean of $firstNumber,$secondEnumerate and $thirdEnumerate is $avg”.