$currentregion = '';
$regioncount = '';
$tempstring = '';
$currenttag = '';
$showhide = '';
$region_dropdown = '';
$state_string = '';
while($rowregionlist = mysql_fetch_array($resultregionlist)){
$selected_region = '';
$selected_state = '';
if ($currentregion != $rowregionlist[regionlong]) {
if ($selected_item == $currentrid) {
$selected_region = ' selected="seleted"';
}
if ($currentregion != '') {
if ($currentregion == $outsideflag) { echo ("
Outside N. America"); }
$region_dropdown .= "
$state_string";
echo ("
');
}
$currentregion = $rowregionlist[regionlong];
$currentrid = $rowregionlist[regionid];
$currenttag = $rowregionlist[regionname];
$regioncount = 0;
$tempstring = '';
$state_string = '';
}
if ($selected_item == $rowregionlist[statetag]) {
$selected_state = ' selected="selected"';
}
$state_string .= "
";
$tempstring = $tempstring. "
$rowregionlist[statelong] ($rowregionlist[numclubs])\n";
$regioncount += $rowregionlist[numclubs];
}
echo ("
');
if ( $selected_item == 'top') { $selected_region = ' selected="selected"'; }
$region_dropdown .= "
";
?>