Untitled
unknown
plain_text
3 years ago
1.0 kB
7
Indexable
php handling 3 index.php
<!DOCTYPE html>
<html>
<head>
<title> Sum of two Numbers using POST method</title>
</head>
<body><center>
<h3>Dushaynth</h3>
<h4>Roll No: 25</h4>
<br>
<h1>SUM OF TWO NUMBERS</h1>
<form action="sum.php" method="post">
Enter Fiirst Number:<input type="number" name="fnum" id="fnum" /><br><br>
Enter Second Number:<input type="number" name="snum" id="snum" /><br><br>
<input type="submit" name="sub" id="sub" value="SUBMIIT" />
<input type="reset" name="cl" id="cl" value="CLEAR" />
</form>
</center>
</body>
</html>
sum.php
<html>
<head>
<title> Sum of two Numbers using POST method</title>
</head>
<body><center>
<?php
$fnum=$_POST['fnum'];
$snum=$_POST['snum'];
$sum=$fnum+$snum;
echo "The Sum Of $fnum & $snum = " .$sum;
?>
</center>
</body>
</html>Editor is loading...