> 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.

Gerald



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to