Hi,
This is a simple script, When I select "Microcyb & PHPVALUE" and "Google , Yahoo"
only Microcyb and Google is printed.
How can i get the all the values from drop down list
Code:<?php
echo '<form action="dropdown.php" method="GET">';
$category = array( 1=> "Microcyb & PHPVALUE", 2=> "Google , Yahoo", 3=> "YABB", 4=> "Macromedia", 5=> "PHP", );
$category = str_replace(" ", " ", $category);
echo '<SELECT name=category>';
foreach ($category as $key => $value)
{
echo '<OPTION value='.$value.'> '.$value.'';
}
echo '</select>';
echo '<input type ="submit" value="submit">';
echo '</form>';
$name = $_REQUEST['category'];
print $name;
?>

