帮忙看看代码错在什么地方
<html> <head> <title>表单</title> </head> <body> <form action="new.php" method="post"/>
<input type="text" name="nickname" />
<input type="text" name="abc" />
<input type="submit" value="计算"/>
</form>
<?php
$bool = $_POST['abc'];
$book = $_POST['nickname'];
$result = $bool + $book;
?>
</body>
</html>
提示20行错误,也就是
$result = $bool + $book; 这里
再修改下表单<input type="submit" name="submit" value="计算"/>
$result = ($bool + $book);