Hi,
>
> i've a little wired problem with a pice of code.
>
> <select name="firma">
> <option> ------ </option>
> [$ foreach $firma (@firmenid) $]
> [$ if $fdat{firma} eq $firma $]
> <option selected>[+ $firma +]</option>
> [$ else $]
> <option>[+ $firma +]</option>
> [$ endif $]
> [$ endforeach $]
> </select>
>
You should rewrite as
<select name="firma">
<option> ------ </option>
[$ foreach $firma (@firmenid) $]
<option value="[+ $firma +]">[+ $firma +]</option>
[$ endforeach $]
</select>
If you have the value attribute, Embperl will take care about selecting the
correct option
Gerald
** Virus checked by BB-5000 Mailfilter **
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]