title: Php is not registering the value of the select box
body: <p>The $_POST method is not giving me the value of the selected option in my select box:</p>
  
  <pre><code>&lt;div class="amazonpackaging_form"&gt;
  &lt;div class="inner_form"&gt;
           &lt;p&gt;Select an Option to choose a SKU:&lt;/p&gt;
          &lt;form class="rad_buttons_1" action="" method="POST"&gt;
              &lt;input type="radio" name="jewelry_type" value="locket"&gt;&lt;label name="type" value="locket"&gt;Lockets&lt;/label&gt;&lt;br&gt;
              &lt;input type="radio" name="jewelry_type" value="jewelry"&gt;&lt;lable name="type" value="jewelry"&gt;Jewelry&lt;/label&gt;&lt;br&gt;
              &lt;input type="submit" name="submit" value="submit"&gt;
          &lt;/form&gt;
          &lt;?
              global $radio_input;
              if (isset($_POST['submit']) and ! empty($_POST['submit'])){
                  if (isset($_POST['jewelry_type'])){
                      $radio_input = $_POST['jewelry_type'];
                  }
              }
          ?&gt;
  &lt;/div&gt;
  
  &lt;div class="inner_form"&gt;
      &lt;form action="" method="POST"&gt;
          &lt;?  
              $flag = "false";
              global $JEWELRY_SKU;
              if (isset($_POST['submit']) and ! empty($_POST['submit'])){
                  echo "&lt;p class='title'&gt;SKU:&lt;/p&gt;";
                  if ($radio_input == "locket"){
                      $sql_1 = "SELECT SKU FROM tblLocketInventory";
                      $flag = "true";
                  }
                  elseif ($radio_input == "jewelry"){
                      $sql_1 = "SELECT SKU FROM tblJewelryInventory";
                      $flag = "true";
                  }
                  if ($flag == "true"){
                      $result_1 = $conn-&gt;query($sql_1);
                      $counter = 1;
                      $db_sku_list = array();
                      if ($result_1-&gt;num_rows &gt; 0) {
                          while($row = $result_1-&gt;fetch_assoc()) {
                              $db_sku_list[$counter] = $row["SKU"];
                              $counter = $counter + 1;
                          }
                      }
                      $counter = 1;
                      echo "&lt;select name='sku_select'&gt;";
                      foreach ($db_sku_list as $_sku){
                          if ($counter == 1){
                              echo "&lt;option value=".$_sku." selected='selected'  name = ".$_sku."&gt;".$_sku."&lt;/option&gt;";
                          }
                           else {
                              echo "&lt;option value = ".$_sku." name = ".$_sku."&gt;".$_sku."&lt;/option&gt;";
                          }
                          $counter++;
                       }
                       echo "&lt;/select&gt;";
                   }
                   $JEWELRY_SKU = $_POST['sku_select'];
                   echo "&lt;div class='split1'&gt;&lt;p&gt;Quantity Used:&lt;/p&gt;&lt;input type='text' name='quantity' class='form_inputbox1'&gt;&lt;/div&gt;";
                   echo "&lt;div class='split2'&gt;&lt;p&gt;Quantity Damaged:&lt;/p&gt;&lt;input type='text' name='quantity' class='form_inputbox1'&gt;&lt;/div&gt;";
              }
          ?&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;?
       $JEWELRY_SKU = $_POST['sku_select'];
       if ($radio_input == "locket"){
           include ("amazonlockets.inc");
       }
  ?&gt;
  </code></pre>
  
  <p>I'm getting an error on the line</p>
  
  <pre><code>$JEWELRY_SKU = $_POST['sku_select'];
  </code></pre>
  
  <blockquote>
    <p>Notice: Undefined index: sku_select in /Applications/XAMPP/xamppfiles/htdocs/ATDWebApp/sku.inc on line 65</p>
  </blockquote>
  
  <p>I've tried playing around with this in numerous ways, but I cannot figure out why I'm not getting a value from this.</p>
  
  <p>I have tried putting it in a separate form in separate php code and I still have the same error. Any ideas why?</p>