Program 1
<?php include 'MenuApplication.php'?>
<html>
<head><title>Factorial Page</title></head>
<body>
<center>
<br><h5>Enter A Number</h4>
<form method=post action=factorial.php>
<input type=text name=txnumber>
<input type=submit value=submit name=btnsubmit1>
</form>
<?php
if(isset($_POST['btnsubmit1']))
{
$n=$_POST['txnumber'];
$f=1;
while($n!=0)
{
$f=$f*$n;
$n--;
}
echo "<font color=blue size=5> Factorial is: ".$f."</font>";
}
?>
<center>
</body>
</html>