Or try this

Code: 
                    <form action="index.php" method="post">
                    <input type="text" name="q" value="" size="20" />
<p><?php
echo '<SELECT name=type>';
echo '<OPTION selected>All</option>';
foreach($core->allowed_types as $type)
{
echo '<OPTION value='.$type.'> '.ucfirst($type).'</option>';
}
echo '</select>';
echo '<input type=submit value=GO />';
?>
                    </p>
                    </form>