Created
October 13, 2011 03:12
-
-
Save ctrl-freak/1283255 to your computer and use it in GitHub Desktop.
Print Australian States (Abbreviations)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <label for="state">State</label> | |
| <select name="state" id="state" class="validate[required]"> | |
| <? $state = array('','QLD', 'NSW', 'VIC', 'ACT', 'SA', 'NT', 'TAS', 'WA');?> | |
| <? foreach($state as $s): ?> | |
| <option value="<?=$s?>"<? if ($form['state']==$s): ?> selected="selected"<? endif; ?>><?=$s?></option> | |
| <? endforeach; ?> | |
| </select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment