Skip to content

Instantly share code, notes, and snippets.

@dexfs
Created March 20, 2013 16:28
Show Gist options
  • Save dexfs/5206067 to your computer and use it in GitHub Desktop.
Save dexfs/5206067 to your computer and use it in GitHub Desktop.
<select name="busca_uf" class="selectBusca" id="busca_uf" >
<option value="">---</option>
<option value="AC" <?php
if ('AC' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>AC</option>
<option value="AL" <?php
if ('AL' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>AL</option>
<option value="AM" <?php
if ('AM' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>AM</option>
<option value="AP" <?php
if ('AP' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>AP</option>
<option value="BA" <?php
if ('BA' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>BA</option>
<option value="CE" <?php
if ('CE' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>CE</option>
<option value="DF" <?php
if ('DF' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>DF</option>
<option value="ES" <?php
if ('ES' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>ES</option>
<option value="GO" <?php
if ('GO' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>GO</option>
<option value="MA" <?php
if ('MA' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>MA</option>
<option value="MT" <?php
if ('MT' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>MT</option>
<option value="MS" <?php
if ('MS' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>MS</option>
<option value="MG" <?php
if ('MG' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>MG</option>
<option value="PA" <?php
if ('PA' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>PA</option>
<option value="PR" <?php
if ('PR' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>PR</option>
<option value="PB" <?php
if ('PB' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>PB</option>
<option value="PE" <?php
if ('PE' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>PE</option>
<option value="PI" <?php
if ('PI' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>PI</option>
<option value="RJ" <?php
if ('RJ' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>RJ</option>
<option value="RN" <?php
if ('RN' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>RN</option>
<option value="RO" <?php
if ('RO' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>RO</option>
<option value="RR" <?php
if ('RR' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>RR</option>
<option value="RS" <?php
if ('RS' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>RS</option>
<option value="SC" <?php
if ('SC' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>SC</option>
<option value="SP" <?php
if ('SP' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>SP</option>
<option value="SE" <?php
if ('SE' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>SE</option>
<option value="TO" <?php
if ('TO' == $_SESSION['busca']['uf']) {
print ' selected ';
}
?>>TO</option>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment