Calculation
- Enter two numbers
- Select an operation via the buttons
- Show the result in a
divtag with classbox-info
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']