I'm trying to get the inverse of the number thats POSTED from a form.
<select name="inverse_num">
<option value="2">2 </option>
<option value="1">1 </option>
<option value="1/2">1/2 </option>
<option value="1/3">1/3 </option>
</select>
In the php file which gets the value, say "1/2",
$my_inverse=1/($_POST[inverse_num]); // returns 1 , but..
$my_inverse=1/(1/2); // returns 2, which is required.
Why does this happen..coz logically I'm posting the same value. Please suggest.