(PCC)::[how-to-accept-value-from-user-and-perform-division-of-two-numbers-in-php]::[php]
<html> <body> <form method="post"> Enter First Number: <input type="number" name="number1" /><br><br> Enter Second Number: <input type="number" name="number2" /><br><br> <input type="submit" name="submit" value="Div"> </form> <?php if(isset($_POST['submit'])) { $number1 = $_POST['number1']; $number2 = $_POST['number2']; $Div = $number1/$number2; echo "The Div of $number1 and $number2 is: ".$Div; } ?> </body> </html>