The form activate a new page. No matter what I do the 28500 is always the result on the next page from this.
var_dump($amount); (if I put it here an refress the page it come out with: string(5) "28500"
$amount=$t["monthly_cost"];
$selected_radio = $_POST['ans'];
var_dump($selected_radio); (if I put this in here an refress the page it come out with: NULL
if ($selected_radio=='1')
{
$amount=$t["monthly_cost"] 2;
var_dump($amount); (if I put this in here an refress the page noting comes out
}
else if($selected_radio=='2')
{
$amount=$t["monthly_cost"] 3;
var_dump($amount); (if I put this in here an refress the page noting comes out
}
echo "<form action='".$t["sp_url"]."' method='post'>";
echo " Price 1 <input type='radio' name='ans' value='1' /><br />";
echo " Price 2 <input type='radio' name='ans' value='2' /><br />";
echo "<input type='submit' name='submit1' value='SUBMIT'/>
echo "</form>";