title: Getting "Unidentified Index" while getting selected dropdown value in php form
body: <p>My html code looks like below.</p>
  
  <pre><code>&lt;select name="datasetownercluster"&gt;
  &lt;option disabled selected value&gt; -- select an option -- &lt;/option&gt;
  &lt;option&gt;a&lt;/option&gt;
  &lt;option&gt;b&lt;/option&gt;
  &lt;option&gt;c&lt;/option&gt;                                                                                      
  
  
  &lt;/select&gt;
  </code></pre>
  
  <p>and my php code looks like below</p>
  
  <pre><code>&lt;?php
  if(isset($_POST['submit']))
  {
  
  $datasetownercluster = $_POST['datasetownercluster'];
  
  }?&gt;
  </code></pre>
  
  <p>But it gives me an error like "Notice: Undefined index: datasetownercluster in C:\xampp\htdocs\Access\insert\insert.php on this line"</p>