Mailing List Archive

POST data
I'm having problems with Embperl reading POST data. It consistently hangs.
GET is working fine.
I tried setting options => 256 when calling HTML::Embperl::Execute and
sending my own form data as fdat => \%IN, but this doesn't preserve the
automatic pre-selection (ie. SELECTED being set according to previous state
of form), which my application depends on.

Thank you in advance for any help you can provide.

Ilia Lobsanov.
RE: POST data [ In reply to ]
>
> I'm having problems with Embperl reading POST data. It consistently hangs.

If the POSTED data is already read, Embperl will hang when it tries to read
the POSTED data a second time.

> GET is working fine.
> I tried setting options => 256 when calling HTML::Embperl::Execute

This is the correct solution for this problem

> and
> sending my own form data as fdat => \%IN, but this doesn't preserve the
> automatic pre-selection (ie. SELECTED being set according to
> previous state
> of form), which my application depends on.
>

This should work anyway. Are you sure %IN contains the rights keys and
values?

If yes, does it change anything if you add an addtional ffld => [keys %IN] ?

Does the problem only occurs with SELECT or also within normal text input
fields?

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 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
RE: POST data [ In reply to ]
>
> That is, in the same environment, when I select *multiple*
> checkboxes of the
> same name, they don't get re-checked on the same page after I submit by
> POST.
>

Can you send us a small example how your page looks like?

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 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
RE: POST data [ In reply to ]
> >
> > That is, in the same environment, when I select *multiple*
> > checkboxes of the
> > same name, they don't get re-checked on the same page after I submit by
> > POST.
> >
>
> Can you send us a small example how your page looks like?
>

I overseen, that you already done this via private mail (please include
Embperl somewhere in the subject).

The problem is that Embperl have another format for multiple values with the
same name. Embperl passes them in one string spearated by tabs, while the
CGI.pm's Vars method separates them by a binary null. So s/\0/\t/g should
do the trick.

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 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
Re: Embperl POST data [ In reply to ]
Thank you, Gerald. You are right, it works now!

Would it be too much to ask of you to include the check for binary null in
Embperl? Who knows... maybe I won't be the only one with such a problem.

Best regards,

ilia.

----- Original Message -----
From: "Gerald Richter" <richter@ecos.de>
To: "Ilia Lobsanov" <ilia@lobsanov.com>
Cc: "Embperl@Perl. Apache. Org" <embperl@perl.apache.org>
Sent: Saturday, April 08, 2000 8:48
Subject: RE: POST data


> > >
> > > That is, in the same environment, when I select *multiple*
> > > checkboxes of the
> > > same name, they don't get re-checked on the same page after I submit
by
> > > POST.
> > >
> >
> > Can you send us a small example how your page looks like?
> >
>
> I overseen, that you already done this via private mail (please include
> Embperl somewhere in the subject).
>
> The problem is that Embperl have another format for multiple values with
the
> same name. Embperl passes them in one string spearated by tabs, while the
> CGI.pm's Vars method separates them by a binary null. So s/\0/\t/g
should
> do the trick.
>
> 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 925151
> WWW: http://www.ecos.de Fax: +49 6133 925152
> -------------------------------------------------------------
>
>
RE: Embperl POST data [ In reply to ]
>
> Would it be too much to ask of you to include the check for binary null in
> Embperl? Who knows... maybe I won't be the only one with such a problem.
>
I have put it on the TODO list

Gerald