perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject Re: select list question - again...
Date Thu, 15 Jun 2000 11:37:31 GMT
> I have a routine that restores %fdat to the stored data values in the DB
> so users can come back and edit a form, but I can't figure out how to
> get select lists restored.
> I tried the following:
> <OPTION VALUE="[+ $abr=$STATE_ABBREVIATIONS[$row]+]"[$ if( (defined
> $fdat{'state'})
> && ($fdat{'state'} eq $abr) )$] SELECT[$ endif $]>
> but this doesn't reset "state" to the value that was retrieved from the
> database.

Must be "SELECTED" and not SELECT, but it should be enought to simply set
%fdat to the same values as it was before and Embperl will automaticly
insert the SELECETED attribut to your OPTION tags.


View raw message