I have a table of countries that contains two columns, abbreviations &
names.
At the beginning of an HTML doc I have the following code:
%COUNTRIES = $lookup->countries($dbh);
@COUNTRY_ABBREVS = $lookup->country_abbreviations($dbh,'name');
unshift(@COUNTRY_ABBREVS,'none');
$COUNTRIES{'none'}{'name'} = 'Select country';
This code is used to populate a drop down lists of countries. The first
time countries() is called it populates two resident hashes one that is
keyed by abbreviation and another that is keyed by country name.
Further down in the HTML doc I have the following:
<font size="-1"><SELECT NAME="mail_country">
<OPTION VALUE="[+ $abr=$COUNTRY_ABBREVS[$row] +]">
[+$COUNTRIES{$abr}{'name'} +]</OPTION>
</SELECT></font>
Here's the strangeness... The drop down list isn't completely populated
- Hungary is the consistent cutoff.
If I create a perl script doing the same operations I get a list of 240
countries.
Any ideas?
--
__________________________________________________________
Mr. Erich L. Markert emarkert@pace.edu
Computer Learning Center TEL (914)422-4328
Pace University
1 Martine Ave
White Plains, New York 10606-1932
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer
names.
At the beginning of an HTML doc I have the following code:
%COUNTRIES = $lookup->countries($dbh);
@COUNTRY_ABBREVS = $lookup->country_abbreviations($dbh,'name');
unshift(@COUNTRY_ABBREVS,'none');
$COUNTRIES{'none'}{'name'} = 'Select country';
This code is used to populate a drop down lists of countries. The first
time countries() is called it populates two resident hashes one that is
keyed by abbreviation and another that is keyed by country name.
Further down in the HTML doc I have the following:
<font size="-1"><SELECT NAME="mail_country">
<OPTION VALUE="[+ $abr=$COUNTRY_ABBREVS[$row] +]">
[+$COUNTRIES{$abr}{'name'} +]</OPTION>
</SELECT></font>
Here's the strangeness... The drop down list isn't completely populated
- Hungary is the consistent cutoff.
If I create a perl script doing the same operations I get a list of 240
countries.
Any ideas?
--
__________________________________________________________
Mr. Erich L. Markert emarkert@pace.edu
Computer Learning Center TEL (914)422-4328
Pace University
1 Martine Ave
White Plains, New York 10606-1932
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer