RE: help displaying a select list

2000-06-13 Thread Gerald Richter
> > but I continue to receive this error. I know it's just a warning but is > there anyway to get rid of this warning? This warning comes from the end of the list. There must be one undefined element, because that is the one that stops the list. So at the moment there is no chance to get rid of

Re: help displaying a select list

2000-06-13 Thread Erich L. Markert
Gerald Richter wrote: > > > > Here is what I would do > > [- @STATE_ABBREVIATIONS = sort keys %STATES -] > > [+ > $STATES{$abr}{name}+] > A while ago I was sent this solution to display a complex hash in a select list. Works like a champ, however in my web error log I'm getting warni

Re: help displaying a select list

2000-04-04 Thread Erich L. Markert
Gerald Richter wrote: Yeah, it was a typo... > Shouldn't it be $STATES{$STATE_ABBREVIATIONS[$row]}{name} ? > > [- @STATE_ABBREVIATIONS = sort keys %STATES -] > > [+ > $STATES{$abr}{name}+] > Works like a champ! Thanks Gerald. -- __

RE: help displaying a select list

2000-04-04 Thread Gerald Richter
> > I can get a select list to work using the vars @STATE_ABBREVIATIONS, > @STATE_NAMES which are retrieved from %STATES. To retrieve a value from > this hash I would enter: > $STATES{'NY'}{'name'} or $STATES{'NY'}{'code'}... > > If I don't care about the list order then the following works fine:

Re: help displaying a select list

2000-04-04 Thread ___cliff rayman___
from your own example - don't you need? $STATES{$STATE_ABBREVIATIONS[$row]}{'name'} cliff rayman genwax.com "Erich L. Markert" wrote: > > I attempted to do: $STATES{$STATE_ABBREVIATIONS[$row]} for the list > display name but it came back empty. Can something like this be done by > HTMLEmbperl

help displaying a select list

2000-04-04 Thread Erich L. Markert
I can get a select list to work using the vars @STATE_ABBREVIATIONS, @STATE_NAMES which are retrieved from %STATES. To retrieve a value from this hash I would enter: $STATES{'NY'}{'name'} or $STATES{'NY'}{'code'}... If I don't care about the list order then the following works fine: $S