If I have the following in a form:

[- @STATE_ABBREVIATIONS = sort keys %STATES -]
<SELECT NAME="state">
        <OPTION VALUE="[+ $abr=$STATE_ABBREVIATIONS[$row]+]">[+
$STATES{$abr}{name}+]</OPTION>
</SELECT>

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.
--
__________________________________________________________
Mr. Erich L. Markert                     [EMAIL PROTECTED]
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

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

Reply via email to