Calculation
Solution
- Enter two numbers
- Select an operation via the buttons
Tips
- By adding the attribute
step="any"
to the input fields, also floats are allowed - By giving the buttons the same name (
'button'
) and different values, we can detect which button is clicked on by using$_GET['button']
or$_POST['button']