Created
October 13, 2011 03:13
-
-
Save ctrl-freak/1283262 to your computer and use it in GitHub Desktop.
Print Australian States (Full)
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('','Queensland','New South Wales','Victoria','Australian Capital Territory','South Australia','Northern Territory','Tasmania','Western Australia');?> | |
<? 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