Posted by Joe on Sat 26th May 13:12
download | new post
- <html>
- <body>
- <form action="circle.php" method="post" enctype="multipart/form-data">
- Diameter-
- <input type="text" name="diameter"><br>
- Radius-
- <input type="text" name="radius"><br>
- <input type="submit" value="Calculate">
- </form>
- </body>
- </html>
- <?php
- //begin html page
- print <<<HTML
- <html>
- <body>
- HTML;
- $diameter = $_POST['diameter'];
- $radius = $POST['radius'];
- if ($diameter != "") {
- $rad=$diameter / 2;
- }else{
- }
- //close open html elements
- print <<<HTML
- </body>
- </html>
- HTML;
- ?>
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.