我是 Jad,我正在努力让数学更圆。问题是当我单击 Do Math! 时,回声不起作用。这是我的代码:
<?php
if(isset($_GET['math']))
switch ($_GET['math']) {
case "round":
if (isset($_POST['submit'])){
echo round($_POST['numb1']);
} else{
?>
<h1>Math Rounding!</h1>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<table border="0">
<tr>
<td>Number:</td>
<td>
<input type="text" name="numb1" placeholder="Number 1..." maxlength="44444444444444444444444444444444444444444444444444444444444444444444">
</td>
</tr>
<tr>
<th colspan=2>
<input type="submit" name="submit" value="Do Math!" style="height: 25px; width: 100px">
</th>
</tr>
</table>
</form>
</center>
<?php
break;
}
}
?>