<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vize Final Hesaplama</title>
</head>
<body>
<div>
<h2>Hesaplama</h2>
<form action="" method="post">
<table>
<tr>
<td>Vize</td><td>
<input type="text" name="txtVize" value="" />
</td></tr>
<tr>
<td>Final</td><td>
<input type="text" name="txtFinal" value=""/>
</td></tr>
<tr>
<td></td><td>
<input type="submit" value="Hesapla" />
</td></tr>
</table>
</form>
</div>
<div>
<?php
if(isset($_POST["txtVize"]) && isset($_POST["txtFinal"]))
{
$vize=$_POST["txtVize"];
$final=$_POST["txtFinal"];
$ort=$vize*0.4+$final*0.6;
echo "Ortalamanız= ".$ort;
}
?>
</div>
</body>
</html>
Yazar: TRCodeRooTeR Tarih: 2020-12-08 12:13:47 Görüntüleme: 729 Yorum: 0