title: PHP Passing multiple input option variable values, then extracting them
body: <p>I was following one example given on this site that was explaining the 'explode' method of extracting 2 values from a drop-down list, filled dynamically from a database. When I was just trying to get 1 value, this all worked, but I realized I needed to extract more values from the 1 selection from the drop-down. I am trying the 'pipe-explode' method, as you can see, but it is returning nothing. No error, just nothing, not even the 'echo' in the 'isset' function. Any thoughts?      </p>
  
  <pre><code>$verbs = mysqli_query($dbc, "SELECT * FROM verblist WHERE person = '1s'"); 
  
  echo'&lt;form method="post"&gt;
       &lt;select id="verbList" class="dropdownObj" name="verbList"&gt;
       &lt;option&gt;Choose a Verb&lt;/option&gt;
       ';
  
       while ($row = mysqli_fetch_assoc($verbs)){
           echo'&lt;option value="'.$row['mainVerb'].'|'.$row['form'].'"&gt;'.$row['mainVerb'].' - form '.$row['form'].'&lt;/option&gt;';     
       }
  
       echo'&lt;/select&gt;
            &lt;input type="submit" name="verbSubmit" value="Start Game"&gt;
            &lt;/form&gt;
       ';
  
  if(isset($_POST['submit'])){
              $selectedVerb = $_POST['verbList'];
              $result_explode = explode('|', $selectedVerb);
              echo'Your verb selection: &lt;b&gt;'. $result_explode[0] .'&lt;/b&gt; and form: &lt;b&gt;'. $result_explode[1] .'&lt;/b&gt;&lt;br&gt;';          
          }
  </code></pre>