This question already has an answer here:
Iam staring with PHP. I'm trying to enter data into the website, make some calculations, and write it on website
<p><input type="number" id="a" > Typa A value </input> </p>
<p><input type="number" id="b" > Type B value </input> </p>
<p><input type="submit" id="c" value="c " > </button>
session_start();
if (isset($_POST['a'])) {
$a=$_POST['a'];
$a=$_POST['b'];
$d= $a * $b
echo $d; }
//how to type it on website?
</div>