I am a newbie of PHP coding, and want to do a simple math example, d=(a+b)/c.
The values of a and b will be submitted by the user from a webpage containing PHP form.
The value of c is predefined in the PHP page.
When the user click “submit” in this webpage.
I expect to get the result of d in the bottom of the same webpage.
Any example code will be greatly appreciated.
1 Answer