Question:
Write a PHP Web Application with the following specifications:
1. The first file form.html contains the following form:
a. No1: Text Input.
b. No2: Text Input
c. Submit button: with value "Calculate".
d. The form should send (No1 and No2) to the file math.php
2. In file math.php
Create a program that will find:
1- No1 + No2
2- No1 – No2
3- No1 / No2
4- No1 * No2
5- No1 % No2
6- rand(No1, No2)
7- max(No1, No2)
Your code must be will arranged, for example if No1=6 and No2=4 then the run of your code will be as following:
6 + 4 = 10
6 – 4 = 2
6 / 4 = 1.5
6 * 4 = 24
6 % 4 = 2
random(6,4) = 6 or 5 or 4
maximum(6,4) = 6