<?php $a = intval($_POST['a']); $znak = ($_POST['znak']); $b = intval($_POST['b']); if($znak == '+'){ $result = $a + $b ; } if($znak == '/'){ $result = $a / $b ; } if($znak == '-'){ $result = $a - $b ; } if($znak == '*'){ $result = $a * $b ; } echo" Результат: $result <hr>"; echo' <form action="/a.php" method="post"> Число а: <input maxlength="32" size="20" type ="a" name="a"/> <hr> Знак: <input maxlength="32" size="20" type ="znak" name="znak"/> <hr> Число b: <input maxlength="32" size="20" type ="b" name="b"/> <hr> <input type="submit" value="Считать"/> </form> '; ?>