To Calculating the arithmatic opration by usining the (html-css-php) in one page.....!!! 👇with output👇

 <?php



$m=0;
$n=0;
if(isset($_POST["t1"] ,$_POST["t2"]))
{
$m=$_POST["t1"];
$n=$_POST["t2"];

$m
=$m+$n;
$n=$m-$n;
$o=$m*$n;
$p=$m/$n;
}
?>
<html>
    <head>
        <title>
            Arithmatic Operation--
        </title>
        <style>
            *
            {
                /* font:blue; */
                font-size:30px;
                /* text-decoration:inline; */
                background-color:pink;
                text-align:center;
                text-decoration:inline;
                padding: 20px;
                line-height:2;
                border-color:black;
                font-family:monospace;
                align:center;
                text-transform:capitalize;
                margin:20px;

           
            }
            input
            {
                padding: 20px;
                background-color:#abcdef;

                border-radius:20px;
                border-color:;
                border: double ;

            }
        </style>
    </head>
    <body>
        <marquee direction="right">---Arithmatic
Opration---</marquee>
        <form action="arith_html.php" method="POST">
    Enter a 1st Value:<input type="text"name="t1"><br>
    Enter a 2nd value:<input type="text" name="t2"> <br>
<input type="submit" style="color:blue;background-color:black;"
value="Click Here TO show the Arithmatic Opration">
<brAddition:<input type="text" value="<?php echo $m;?>"
name="t3"><br>
Substraction:<input type="text" name="t4"
value="<?php echo $n; ?>"><br>
 MUltiplication:<input type="text" name="t5"
value="<?php echo $o; ?>"><br>
Division:<input type="text" name="t6"
value="<?php echo $p;?>"><br>
        </form>
    </body>
</html>

Comments