Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($_GET['num1_dive'] > 0 and $_GET['num1_time'] > 0 and $_GET['num1_take'] > 0 and $_GET['num1_add'] > 0 )
- {
- $num1_add = $_GET['num1_add'];
- $num2_add = $_GET['num2_add'];
- $total1 = $num1_add + $num2_add;
- $num1_take = $_GET['num1_take'];
- $num2_take = $_GET['num2_take'];
- $total2 = $num1_take - $num2_take;
- $num1_time = $_GET['num1_time'];
- $num2_time = $_GET['num2_time'];
- $total3 = $num1_time * $num2_time;
- $num1_dive = $_GET['num1_dive'];
- $num2_dive = $_GET['num2_dive'];
- $total4 = $num1_dive / $num2_dive;
- echo "1.) $total1 <br>";
- echo "2.) $total2 <br>";
- echo "3.) $total3 <br>";
- echo "4.) $total4 <br>";
- echo '<a href="index.html">click here to go back</a>';
- }
- else
- {
- echo "You did not enter a vaild value<br>";
- echo '<a href="index.html">click here to go back</a>';
- }
- ?>
Add Comment
Please, Sign In to add comment