title: php if statement not working
body: <p>Is there any reason that my if statment below in php is not working? It does not calculate the price when the correct radio button is selected. It constantly displays price as "49"</p>
  
  <pre><code>     &lt;td width="236" height="25" align="left"&gt;Booking Period:&lt;/td&gt;
  &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td height="10" align="right" class="align_left"&gt;One Day: ₤49 &lt;/td&gt;
                  &lt;td&gt;
                    &lt;input type="radio" name="duration" id="oneday" value="One Day Rental"/&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
  
      &lt;tr&gt;
                  &lt;td height="30" align="right" class="align_right"&gt;Two Day: ₤69&lt;/td&gt;
                  &lt;td&gt;
                    &lt;input type="radio" name="duration" id="two" value="Two Day Rental"/&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
      &lt;tr&gt;
                  &lt;td height="30" align="right" class="align_right"&gt;Weekend: ₤79&lt;/td&gt;
                  &lt;td&gt;
                    &lt;input type="radio" name="duration" id="weekend" value="Weekend Rental"/&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
  
              $price = 0;
              if ($duration=="oneday")
              $price = 49;
                  elseif ($duration=="two")
              $price = 69;
              elseif ($duration=="weekend")
              $price = 79;
              else
                  $price = 49;
  
          if (empty($_POST['extras'])) {
           $price = $price;
                  } else { 
                  if($extra == "Deodoriser"){
                              $price = $price + 7;
                          } elseif($extra == "Carpet Protector (5 litre)"){
                              $price = $price + 39;
                          } elseif($extra == "Carpet Repair Tools"){
                              $price = $price + 9;
                          } elseif($extra == "Furniture Moving Equipment"){
                              $price = $price + 7;
                          } elseif($extra == "Furniture Tabs"){
                              $price = $price + 2;
                          } elseif($extra == "Urine Decontamination Treatment"){
                              $price = $price + 17; }
                  else
          $price = $price; 
          }
  </code></pre>