====================
Questoin No 2 ka hal
====================
Shakeel bhai ZAKAAT CALCULATOR kuch u banaya hai aap zara s par nazar sane kareen please.
PHP Code:
<html>
<head>
<title> PHP MySQL Class 9 Tutorial's Workshop ( I T M a h a l . c o . c c ) </title>
</head>
<body>
<CENTER><u><font color=green size =7> <i>Zakat Calculator</font> <b>by LoveRahiPlus</b></i></font></u></CENTER>
<hr />
<br /><br />
<?php
if($_POST['amount']) {
function CalculateZakat() {
$amount = $_POST['amounts'];
$ZakatRatio = 2.5; //Amount of Zakaat that is payable on per 100 rupees.
$calculate =$amount * 2.5/100; // Calculate the amount of Zakat that will be payable on given amount of money.
//Know in last print out the data calculated. I've used some colored out put.
echo "Entered amount is: <b>Rs. <font color=red size = 4>". $amount."</font></b> rupees<br />
Zakat Ratio is <b>Rs. <font color=green size=5>" .$ZakatRatio ."</font></b> per 100 rupees.<br />
Total payable Zakat is : <b>Rs. <font color=red size = 6>" . $calculate ."</font></b> rupees.<br />";
}
CalculateZakat();
}
?>
<hr />
<form action="php-class9.php" method='POST'>
<b>Type Amount (of Money) to calculte Zakat on that:</b>
<input type="text" name='amounts' value ="100" /><BR /><BR />
<input type="hidden" name ="amount" value ="true" />
<center><input type="reset" value ="Reset" />
<input type="Submit" value ="Calculate" /></center>
</form>
<hr />
</body>
</html>
S baar koshesh k hai todre bahot comment bhe de hai.
NOTE:- Baqe 2 Question mai todra atka howa hoon i mean table banany mai wo coding tu k hai par....
Bookmarks