<div class="form-row"> <label for="units">Unit Preference:</label> <?php echo radiobutton_tag('units[]', 'miles', $miles); ?> <label for="units">Miles</label> <?php echo radiobutton_tag('units[]', 'kilo', $kilo); ?> <label for="units">Kilometers</label> </div> <div class="form-row"> <label for="title">Country:</label> <?php echo select_tag('country', objects_for_select(CpCountriesPeer::getAllCountries(), 'getId', 'getName', $user->getUserProfile()->getCountry()), array('style' => 'width:150px', 'onchange' => remote_function(array('update' => 'stateSelection', 'url' => 'users/getStates', 'with' => "'country=' + this.value", 'loading' => "Element.show('indicator')", 'complete' => "document.getElementById('state').onchange(),Element.hide('indicator')")))); ?> <span id="stateSelection"></span> <span id="citySelection"></span> </div> <div class="submit-row"> <input type="submit" name="submit" value="save"/> <?php echo button_to('cancel', 'users/profile'); ?> </div> </form> </div>