I wrote simple calculator program with a html page and a php page.
Here is the html code: calculator.php
<html>
<head>
<title>My Calculator</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
</head>
<body>
<form action"result.php" method="post">
<table width="400px" border="0px">
<tr><td>The First Number</td><td><input type="text" name="num1"/</td></tr>
<tr><td>The Second Number</td><td><input type="text" name="num2"/</td></tr>
<tr><td>Operator</td>
<td>
<select name="oper">
<option value="+">+</option>
<option value="-">-</option>
<option value="*">*</option>
<option value="/">/</option>
</select>
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Calculatioin result"/></td>
</tr>
</table>
</form>
</body>
</html>
and here is my php page: result.php
[php]
return to the calculator page
[/php]
The problem is, when I ran the html page in browser, the html page does not go any where after I clicked on “calculation result” button.
Please help me to solve this problem.
Thanks!