if manyağı oldu
<form id="form1" name="form1" method="post" action="">
<table width="356" border="0">
<tr>
<td width="136"> </td>
<td width="1"> </td>
<td width="13"> </td>
<td width="7"> </td>
<td width="165"> </td>
</tr>
<tr>
<td>1.Not:</td>
<td colspan="4"><input type="text" name="textfield" /></td>
</tr>
<tr>
<td>2.Not:</td>
<td colspan="4"><input type="text" name="textfield2" /></td>
</tr>
<tr>
<td>3.Not:</td>
<td colspan="4"><input type="text" name="textfield3" /></td>
</tr>
<tr>
<td>Ders Türü </td>
<td colspan="4"><select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
<option value="zorunlu">Zorunlu Ders</option>
<option value="secmeli">Seçmeli Ders</option>
</select></td>
</tr>
<tr>
<td>Tekrar Durumu: </td>
<td colspan="4"> </td>
</tr>
<tr>
<td><p>
<label>
<input type="radio" name="radio" value="1" checked />
1.Kez alıyor.</label><br />
<label>
<input type="radio" name="radio" value="2" />
2. Kez alıyor</label><br />
<label>
<input type="radio" name="radio" value="3" />
3. Kez alıyor. </label><br />
</p></td>
<td colspan="4"> </td>
</tr>
<tr>
<td> </td>
<td colspan="4"><label>
<input type="submit" name="Submit" value="Hesapla" />
</label></td>
</tr>
</table>
</form>
<?php
if(isset($_POST["textfield"]) or isset($_POST["textfield1"]) or isset($_POST["textfield3"]) ){
$not1 = $_POST["textfield"];
$not2 = $_POST["textfield2"];
$not3 = $_POST["textfield3"];
$kez = $_POST["radio"];
$zorunlu = $_POST["menu1"];
if(!is_numeric($not1) or !is_numeric($not2) or !is_numeric($not3)){
echo "Lütfen alanların hepsine numara giriniz";
exit;
}
if($zorunlu == "zorunlu"){
$not1 = $not1 / 100 * 40;
$not2 = $not2 / 100 * 20;
$not3 = $not3 / 100 * 40;
echo "1. Not:<strong>".$not1."</strong><br />";
echo "2. Not:<strong>".$not2."</strong><br />";
echo "3. Not:<strong>".$not3."<strong><br />";
echo "Bu Dersi ".$kez." kez alıyor";
}elseif ($zorunlu == "secmeli"){
$not1 = $not1 / 100 * 30;
$not2 = $not2 / 100 * 30;
$not3 = $not3 / 100 * 40;
echo "1. Not:<strong>".$not1."</strong><br />";
echo "2. Not:<strong>".$not2."</strong><br />";
echo "3. Not:<strong>".$not3."<strong><br />";
echo "Bu Dersi ".$kez." kez alıyor";
}
}else {
echo "Form Alanlarını Boş Bıraktın";
}
?>