should be selected="selected"
NOT “selected=selected”
EDIT:
Ok I see – it’s because you are using a foreach arguement to say that it’s selected. Meaning that it prints the HTML showing that everything should be selected.
Try something like this:
<select name="pais" class="pais-select">
<option value="" disabled selected>PaĆs</option>
<option value="Argentina">Argentina</option>
<?php
$pais = diretorio_request('pais');
foreach(diretorio_countries() as $country) {
?>
<option value="<?php echo $country; ?>"><?php echo $country; ?></option>
<?php
}
?>
</select>
or I suppose you could do something like
<option value="<?php echo $country; ?>" <?php if ($country == Argentina) { echo 'selected="selected" ' } ?>"><?php echo $country; ?></option>
Depending on how the values are stored!