title: Deleting a value selected from a combobox in php/mysql
body: <p>I'm trying to delete a certain selected value from my MYSQL database in php..</p>
  
  <p>[delete.php]</p>
  
  <pre><code>&lt;form name="delete" method="POST" action="d3l3t3d.php"&gt;
      &lt;select name="eBox" id="nname" style="width: 290px; height:40px;"&gt;
      &lt;?php
      mysql_connect("a","b","") or die("Wrong username or password");
      mysql_select_db("TABLE") or die( "Unable to select database");
      $query = "Select * From list";
      $result = mysql_query($query);
      while ($row = mysql_fetch_array($result)) 
      { 
      $name = $row['name']; 
      echo "&lt;option&gt;" . $name . "&lt;/option&gt;"; 
      } 
      echo "&lt;/select&gt;&lt;br/&gt;&lt;br/&gt;"
      ?&gt;
  </code></pre>
  
  <p>[d3l3t3d.php]</p>
  
  <pre><code>&lt;?php
     $namez = $_POST['nname'];
     $name = mysql_real_escape_string($namez);
     mysql_connect("a","b",
     "") or die("Wrong username or password");
     mysql_select_db("TABLE") or die( "Unable to select database");
  mysql_query("DELETE FROM list WHERE name='$name'");
  ?&gt;
  </code></pre>
  
  <p>I get the following ERROR: </p>
  
  <blockquote>
    <p>Notice: Undefined index: nname in C:\xampp\htdocs\folder\d3l3t3d.php
    on line 2</p>
  </blockquote>