Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <title>Calculator</title>
- <meta charset="utf-8" />
- <link href="style.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <div id="wrapper">
- <h3>Calculator</h3>
- <?
- $num1 = $_POST['num1'];
- $num2 = $_POST['num2'];
- {
- if(isset($_POST['+']));
- echo "The total is:"($num1 + $num2)
- elseif(isset($_POST['-']));
- echo "The total is:"($num1 - $num2)
- elseif(isset($_POST['*']));
- echo "The total is:"($num1 * $num2)
- elseif(isset($_POST['/']));
- echo "The total is:"($num1 / $num2)
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement