Select Menu from Php Array


#1

Hello,

The select menu gets populated correctly with the following code, but how do I get the links in this array to work? I appreciate everyone’s help!

$countries = array(“link” => “United States”, “link” => “Canada”, “link” => “Russia”, “link” => “China”, “link” => “Japan”);

echo “”;
echo “Select a Country”;

foreach($countries as $option){
echo “{$option}”;
}
echo “”;