Simple PHP select option programming

Divasue

New Member
I have a simple problem in php select option. The page has 5 select option & submit button. When I select a option then it should goes on specific web page. For Example: http://onlinetools.org/tricks/using_multiple_select.php Then I select a option & press Send then It show Which option I select. But I need go specific webpage. I have tried with this code but I have failed...\[code\]<form action="<?=$_SERVER['PHP_SELF']?>" method="post"><select name="test[]" multiple="multiple"> <option value="http://google.com">one</option> <option value="http://yahoo.com">two</option> <option value="http://facebook.com">three</option> <option value="http://who.is">four</option> <option value="http://myspace.com">five</option></select><input type="submit" value="http://stackoverflow.com/questions/8754306/Send" /></form><?php $test=$_POST['test'];echo "<script type=\"text/javascript\">window.location = \"$test\"</script> ";?>\[/code\]Anybody Can help me?
 
Top