This is a simple calculator web application built with HTML, CSS, and PHP. It allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.
- Input fields for two numbers and a dropdown menu to select the operation.
- Error handling for empty fields and non-numeric inputs.
- Calculation of the result based on the selected operation.
- Styling for a visually appealing user interface.
- Clone this repository to your local machine.
- Ensure you have a PHP server installed (e.g., XAMPP, WAMP, or MAMP).
- Place the cloned files in the root directory of your PHP server.
- Start the PHP server.
- Open your web browser and navigate to
http://localhost/calculator.php
(replacecalculator.php
with the actual filename if different). - Enter two numbers and select an operation from the dropdown menu.
- Click the "Calculate" button to see the result.
- HTML
- CSS
- PHP