The variables from the form is not passed to php
<p>I have this form with which I am trying to take some user entered variables and pass them to calculate.php for counting and showing the result.</p>

<h3>calculate.html</h3>

<pre><code>&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Calculation Form&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;FORM METHOD="POST" ACTION="calculate.php"&gt;
&lt;P&gt;Value 1: &lt;INPUT TYPE="text" NAME="vall" SIZE=10&gt;&lt;/P&gt;
&lt;P&gt;Value 2: &lt;INPUT TYPE="text" NAME="val2" SIZE=10&gt;&lt;/P&gt;

&lt;P&gt;Calculation:&lt;br&gt;
&lt;INPUT TYPE="radio" NAME="calc" VALUE="add"&gt; add&lt;br&gt;
&lt;INPUT TYPE="radio" NAME="calc" VALUE="subtract"&gt; subtract&lt;br&gt;
&lt;INPUT TYPE="radio" NAME="calc" VALUE="multiply"&gt; multiply&lt;br&gt;
&lt;INPUT TYPE="radio" NAME="calc" VALUE="divide"&gt; divide&lt;/P&gt;


&lt;P&gt;&lt;INPUT TYPE="submit" NAME="submit" VALUE="Calculate"&gt;&lt;/P&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;
</code></pre>

<h3>calculate.php:</h3>

<pre><code>        &lt;?
if (($_POST["vall"] == "") || ($_POST["val2"] == "") || ($_POST["calc"] =="")) {
    header("Location: http://localhost/calculate.html");
exit;
}

if ($_POST["calc"] == "add") {
   $result = $_POST["vall"] + $_POST["val2"];
} else if ($_POST["calc"] == "subtract") {
   $result = $_POST["vall"] - $_POST["val2"];
} else if ($_POST["calc"] == "multiply") {
   $result = $_POST["vall"] * $_POST["val2"];
} else if ($_POST["calc"] == "divide") {
   $result = $_POST["vall"] / $_POST["val2"];
}

?&gt;

&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Calculation Result&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;

&lt;P&gt;The result of the calculation is: &lt;? echo $result; ?&gt;&lt;/P&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;
</code></pre>

<p>can anybody say where is my mistake as I get only the: The result of the calculation is: </p>
