<div class="text">
<form class="priklad" method="post">
<table cellpadding="5">
<tr>
<td>
<label name="hmotnost">Hmotnost:</label>
</td>
<td>
<input type="text" name="hmotnost" />
</td>
</tr>
<tr>
<td>
<label name="sst">Součinitel smykového tření:</label>
</td>
<td>
<input type="text" name="sst" />
</td>
</tr>
<tr>
<td colspan="2" class="button">
<input id="button" type="submit" value="Vypočítat" />
</td>
</tr>
</table>
</form>
<?php
$m = $_POST["hmotnost"]; //Hmotnost
$f = $_POST["sst"]; //Součinitel smykového tření
$g = 10; //Gravitace
$F = $f * $m * $g; //Řešení rovnice
echo "Výsledek je: " . $F . " N"; //Výpis výsledku
?>
</div>