Need some PHP/HTML help here. I keep getting this error: Parse error: syntax error, unexpected ‘?>’
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.
Program to Return the Average of 3 numbers Enter 1st number. Enter 2ed number. Enter 3rd number Submit Reset