System:Template:getStateList

From Aspen Documentation

Returns an array of US states. Abbreviation => Full Name

Since 1.0

Arguments

array getStateList ()

Returns

Returns an array with two-character state codes as the key, full state name as the value.

Examples

The following sample prints a select box of US states.

<select name="state">
<?php foreach($this->getStateList() as $abbr => $state){?>
     <option value="<?php print $abbr ?>"><?php print $state ?></option>
<?php } ?>
</select>