perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian 'cit' Adamsky <cit-embp...@spin.de>
Subject option selected problem
Date Tue, 20 Dec 2005 13:13:47 GMT
Hiho,
        
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>
        
If $fdat{firma} equal with $firma, then it writes only <option> without
the "selected" option. If i write "<option selecte>", this appears. I
hope you can help me.
        
My Setup:
        
* libembperl-perl 2.0rc2-1 (cgi-mode)
* apache2-common 2.0.54-5
        
greets
cit


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message