title: extracting the html form option value which has spaces in bitween
body: <p>I get a strange problem when extracting the selected option of an html drop down list embedded in a php script, from another PHP script. If the  words of the option values are separated with spaces. PHP echos only the first word of the selected option value. What I'm doing wrong here?</p>
  
  <pre><code>list.php
  
  &lt;body&gt;
  &lt;form action="extract.php" method="post"&gt; 
  &lt;?php
  
  
   $one = "one one";
   $two = "two two";
   $three = "three three";
  
   echo '&lt;select name="selected_item"&gt;';
   echo '&lt;option value='.$one.'&gt;'.$one.'&lt;/option&gt;';
   echo '&lt;option value='.$two.'&gt;'.$two.'&lt;/option&gt;';
   echo '&lt;option value='.$three.'&gt;'.$three.'&lt;/option&gt;';
   echo '&lt;/select&gt;';
  
  
  ?&gt;
  &lt;input type="submit" class="button" value="submit" name="submit" /&gt;
  
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  
  
      extract.php
  
       &lt;?php
  
        if (isset($_POST['submit'])) {
  
          $item_name = $_POST['selected_item'];
          echo $item_name;
  
        }else{
          echo "item not selected";
        }
  
       ?&gt;
  </code></pre>
  
  <p>If I select "three three" in the list PHP echos only "three". Why is that?</p>