This repository was archived by the owner on Jan 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharea.php
More file actions
38 lines (38 loc) · 1.58 KB
/
area.php
File metadata and controls
38 lines (38 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html>
<html>
<head>
<title>
EasySolution/Maths/Gemetry/Circumference
</title>
</head>
<body>
<div float="left">
<h2>Area of circle : </h2>
<h2>Formula : π*(radius of circle)<sup>2</sup></h2><br>
<h3>Derivation Links:</h3>
<ul>
<li><a href="http://www.mathopenref.com/circleareaderive.html" target="iframe_smart">Math Open Reference</a></li>
<li><a href="https://www.youtube.com/watch?v=YokKp3pwVFc&ab_channel=mathematicsonline" target="iframe_smart">Youtube</a></li>
<li><a href="http://www.basic-mathematics.com/proof-of-the-area-of-a-circle.html" target="iframe_smart">Basic Mathematics</a></li>
</ul>
<iframe width="560" height="315" src="https://www.youtube.com/embed/Sx-5YJbszuI" frameborder="0" allowfullscreen></iframe>
</div>
<div height="400px" width="500px" float="right">
<h2>Calculater</h2>
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
Enter radius of circle :<br>
<input type="number" name="radius"> </input><br>
<input type="submit" name="submit" value="Calculate"></input>
</form><br>
<h3>Solution : </h3>π*(radius)<sup>2</sup> :
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST")
{
$a=$_POST["radius"];
$a=floatval($a);
echo (3.14*$a*$a);
}
?>
</div>
</body>
</html>