You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Gerald Richter <ri...@ecos.de> on 2001/10/02 21:27:54 UTC

Re: Different values for SELECTs with same name (was: Embperl BUG report)


> sorry i didn't have a chance to track this down further and fix it,
> but if you have a chance maybe you could do so...
>
> in 1.3.3, certain changes to the %fdat hash break parsing of selects in
html forms.
>
> i'm attaching a simple piece of embperl that tickles the bug.
>

That's not a bug, but an optimization. Your code contains two SELECT tags
with the same name but different values. Embperl assumes that the value
doesn't change between these two selects and preprocesses the values when it
encounters the first SELECT. The preprocessing result is stored for later
use, to make things fasters. That the same for checkboxes, because in both
cases there may exist more than one value for a given name.

Your code should run correctly if you reset the hash %fsplitdat (i.e.
%fsplitdat = () ) between the two selects.

Gerald

P.S. Please send any further questions to the embperl mailing list


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




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