PHP Code For Simple Interest

Php Code for Simple Interest Small Software………..Full html + php code. This simple interest is a quick method of calculating the interest charge on a loan in banking and economic sectors.

This php code is used to find the simple interest. You can select the whole php code and past your notepad and save it.

PHP Code For Simple Interest

PHP simple Interest code below:

<a href="?action=interest&x=500&y=5">intesrest</a>
<form>
 <input name=action value=minus>
 <input name=x value=500>
 <input name=y value=100>
 <input type=submit value=click></form>
<?php $action=$_GET['action'];
$x=$_GET['x'];
$y=$_GET['y'];
if($action=='add'){
echo $x+$y;
}
if($action=='minus'){
echo $x-$y;
}
if($action=='interest'){
echo profit($x, $y);
}
 function profit($total, $interest){
$i=$interest*$total/100;
return $i;
}
?>

This article is contributed by Md Rashidul Islam. If you like this post and would like to contribute, you can also write an article using contact us. Write comments if you find anything incorrect or you want to share your information about the topic discussed above or new topice.

Leave a Reply