You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by "Boyd, David" <db...@nisys.com> on 2001/08/14 20:28:25 UTC

Problems with using Select

I am using mod_perl/embperl  under windows.  The problem that I am haveing
is that I have a combo box in which the options are generated from perl.  I
select an item from the combobox.  If I submit the page back to itself, the
value in %fdat is the first item in the combobox.  If I submit to a
different page and place the selection on the url line, it is still set to
the first item in the combo box.

What am I doing wrong here?  I have spent way to much time on this as it is.
...
Thanks

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


Re: Problems with using Select

Posted by Gerald Richter <ri...@ecos.de>.

> I am using mod_perl/embperl  under windows.  The problem that I am haveing
> is that I have a combo box in which the options are generated from perl.
I
> select an item from the combobox.  If I submit the page back to itself,
the
> value in %fdat is the first item in the combobox.  If I submit to a
> different page and place the selection on the url line, it is still set to
> the first item in the combo box.
>
> What am I doing wrong here?  I have spent way to much time on this as it
is.

This maybe a windows specific problem, when you have a POST request, before
a GET request. Because of an bug in mod_perl sometimes environement
variables persists across requests, which cause Embperl to do the wrong
thing. A workaround is availabel in the current cvs version of Embperl.

You can test if you hit this problem, by doing a new start of Apache and
then _only_ performing GET requests. When it works in this case, you should
upgrade to the cvs version.

Gerald


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