title: PHP/HTML Form retrieving value
body: <p>I have a PHP page with the following code on it for a select box.</p>
  
  <pre><code>&lt;form method="POST" action="&lt;?php echo $a?&gt;" name="test2" id="test2"&gt;
  &lt;select name="test" id="test" onchange="parentNode.submit()"&gt;
  &lt;?php if($_POST['submitted'] == true){ ?&gt;
                      &lt;?php $a = echo $_POST['test'];?&gt; 
                  &lt;?php }else{ ?&gt;
                  &lt;option value=""&gt;-- select Video --&lt;/option&gt;
                  &lt;?php } ?&gt;
  
  &lt;?php  foreach ($pages as $page):
  
      // Prepare data for each page being listed...
      $title = $th-&gt;entities($page-&gt;getCollectionName());
      $url = $nh-&gt;getLinkToCollection($page);
      $target = ($page-&gt;getCollectionPointerExternalLink() != '' &amp;&amp; $page-&gt;openCollectionPointerExternalLinkInNewWindow()) ? '_blank' : $page-&gt;getAttribute('nav_target');
      $target = empty($target) ? '_self' : $target;
      $description = $page-&gt;getCollectionDescription();
      $description = $controller-&gt;truncateSummaries ? $th-&gt;shorten($description, $controller-&gt;truncateChars) : $description;
      $description = $th-&gt;entities($description); 
  
  
      &lt;h3 class="ccm-page-list-title"&gt;
      &lt;option value="&lt;?php  echo $url ?&gt;"&gt;
          &lt;?php  echo $title ?&gt;
      &lt;/option&gt;
      &lt;/h3&gt;
  
  
  &lt;?php  endforeach; ?&gt;
   &lt;/select&gt;
  &lt;input type="submit" value="go" name="Watch Video" /&gt;
  &lt;input type="hidden" name="submitted" id="submitted" value="true" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The above form Has the Page name as the option and the Value as the URL link. Now what I want is for the selected /option to redirect the users on submit to the URL Value (see below option example)</p>
  
  <pre><code>&lt;option value="/index.php/video-gallery/latin-america/mtw-2011-destination-report-mexico-city/"&gt;MtW 2011 - Destination Report: Mexico City&lt;/option&gt;
  </code></pre>
  
  <p>So what I want is the page to redirect to the selected values URL I am close its just setting the selected value on submit to the Variable The Line doesn't work <code>&lt;?php $a = echo $_POST['test'];?&gt;</code></p>
  
  <p>Is this even possible without JavaScript or redirecting to another redirect.php pages which looks up the value for the redirects  then loads that page?</p>