title: Using value of selection for form action
body: <p>I have a dropdown list where I'd like to use the value of the option dropdown to determine the destination of the action of a post method form.</p>
  
  <pre><code>&lt;form name="scriptform" method="post" action=http://www.mysite.com/newad.php?do=newad&amp;cat=&lt;?php urlencode($_POST['catselect']); ?&gt;" target="_self"&gt;"
  &lt;div class="blocked"&gt;
  &lt;select name="catselect"&gt;
  &lt;option value="0"&gt;Please select a Category&lt;/option&gt;
  &lt;optgroup label="Cars"&gt;&lt;/optgroup&gt;
  &lt;option value="14" class=""&gt;BMW&lt;/option&gt;
  &lt;option value="23" class=""&gt;Porsche&lt;/option&gt;
  </code></pre>
  
  <p>The idea here is to take the option value and use it as the category to create a new ad using newad.php. For some reason php is not supplying the value into the string before I press the submit button and it looks like the value is blank. Would appreciate someone providing a little insight!</p>