Simple PHP select option programming
<p>I have a simple problem in php select option. </p>

<p>The page has 5 select option &amp; submit button. When I select a option then it should goes on specific web page. For Example: <a href="http://onlinetools.org/tricks/using_multiple_select.php" rel="nofollow">http://onlinetools.org/tricks/using_multiple_select.php</a> </p>

<p>Then I select a option &amp; press Send then It show Which option I select. But I need go specific webpage. </p>

<p>I have tried with this code but I have failed...</p>

<pre><code>&lt;form action="&lt;?=$_SERVER['PHP_SELF']?&gt;" method="post"&gt;
&lt;select name="test[]" multiple="multiple"&gt;
    &lt;option value="http://google.com"&gt;one&lt;/option&gt;
    &lt;option value="http://yahoo.com"&gt;two&lt;/option&gt;
    &lt;option value="http://facebook.com"&gt;three&lt;/option&gt;
    &lt;option value="http://who.is"&gt;four&lt;/option&gt;
    &lt;option value="http://myspace.com"&gt;five&lt;/option&gt;
&lt;/select&gt;
&lt;input type="submit" value="Send" /&gt;
&lt;/form&gt;




&lt;?php
    $test=$_POST['test'];
echo "
&lt;script type=\"text/javascript\"&gt;
window.location = \"$test\"
&lt;/script&gt;

    ";
?&gt;
</code></pre>

<p>Anybody Can help me? </p>
