Stepping through an associative array
$type_code_array = array (
"ST1" => "Star Trek (Original)",
"ST2" => "Star Trek the Next Generation",
"VOY" => "Star Trek Voyager",
echo “<select name='type_code'> <option value=' '>Choose Type of Video”;
while (list($key,$value) = each($type_code_array)) {
if ($key == $type_code) {
echo "<option value='$key' selected>$value\n";
echo "<option value='$key'>$value\n";
Create an associative array of type codes