Form-based Calculator
How it works.
The inputs are form elements, which through getData are transferred to php variables. Those variables are then operated on by the operant as determined by the operation list box.
Some Cool Features:
- The First Number box is sticky with the final value, unless the form is invalid.
- The Operation and Second Number boxes are not sticky, allowing for faster repetition of calculations.
- Tab index set up for blind users, and color scheme tested for colorblindness.
- The answer to life, the universe, and everything.
Some notable exceptions:
- If a box is blank, then the form is not submitted
- The number boxes don't allow text inputs
- If you attempt to divide by zero, the calculation is not performed
- Zero to the Zero-eth power is also not permitted in this calculator