Diva hope you're good today!! Yes, you guessed it, today I am struggling with "pull_down menus" - implemented this suggested code, but on the form it displays a blank drop-down menu. If I leave all fields blank and then press "Submit" , as expected, it brings up errors for all the other fields, NOT the drop-down one, but viola!, the pulldown field is magically populated. Any ideas on what I am doing wrong here, seeing that you've mastered it?

here is my code:

HEADER_PHP:
// Pulldown to select a country
// Set default selection:
$default_pulldown_selection = '0';

//For validation, you're looking for the contents of the $_POST['choir_country'] variable
// this is only set after "submit" is clicked.
$pulldown_selected_item = (isset($_POST['choir_country'])) ? $_POST['choir_country'] : $default_pulldown_selection ;

//build an array of entries to be displayed on the template for field 'choir_country':
$pulldown_contents[] = array('id'=>'0', 'text'=>'Please Select');
$pulldown_contents[] = array('id'=>'1', 'text'=>'England');
$pulldown_contents[] = array('id'=>'2', 'text'=>'Wales');
$pulldown_contents[] = array('id'=>'3', 'text'=>'Scotland');
$pulldown_contents[] = array('id'=>'4', 'text'=>'Northern Ireland');

// Validation for the 'choir_country' selected field here.
if ($pulldown_selected_item==0) {
$messageStack->add_session('header','You must select a country, please','error');
}
TEMPLATE:
<label class="inputLabel" for="choir_country">Which country are you in?:</label>
<?php echo zen_draw_pull_down_menu('choir_country', $pulldown_contents, $pulldown_selected_item); ?>
<br class="clearBoth" />
Any ideas at all?

Cheers

Cliff