i have calculator buttons type submit...i got the values and displaying in on the same page...but unable to add the addition functionality to the two numbers. here is my code dont know what to do next..two numbers from user and displaying the result only.
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="POST">
<input type="submit" value="0" name="zero">
<input type="submit" value="1" name="one">
</form>
<?php
if (isset($_POST["zero"]))
{
$a = $_POST["zero"];
echo $a;
}
if (isset($_POST["one"]))
{
echo $_POST["one"];
}
?>