You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Paul Dragicevich <pa...@foxgold.net.au> on 2000/03/09 10:21:33 UTC

(Embperl) blank fields not appearing in %fdat and @ffld

I have this problem where blank text fields in a <form> aren't 
appearing in the %fdat hash and @ffld array in the submit page...
I was wondering if this is a bug in Embperl or some configuration
thing that I've overlooked.  (the form's going to a submit that
needs to be able to set db fields to be blank & form field
names correspond directly to db fields).

Re: (Embperl) blank fields not appearing in %fdat and @ffld

Posted by Cliff Rayman <cl...@genwax.com>.
here it is from the documentation:
http://perl.apache.org/embperl/Embperl.pod.3.html#EMBPERL_OPTIONS

optAllFormData = 8192

            This option will cause Embperl to insert all formfields in
%fdat and @ffld, even if
            they are empty. Empty formfields will be inserted with an
empty string. Without this
            option empty formfields will not be insert in %fdat and
@ffld.

cliff rayman
genwax.com

Paul Dragicevich wrote:

> I have this problem where blank text fields in a <form> aren't
> appearing in the %fdat hash and @ffld array in the submit page...
> I was wondering if this is a bug in Embperl or some configuration
> thing that I've overlooked.  (the form's going to a submit that
> needs to be able to set db fields to be blank & form field
> names correspond directly to db fields).


RE: (Embperl) blank fields not appearing in %fdat and @ffld

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

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


> -----Original Message-----
> From: modperl-return-1305-richter=ecos.de@apache.org
> [mailto:modperl-return-1305-richter=ecos.de@apache.org]On Behalf Of Paul
> Dragicevich
> Sent: Thursday, March 09, 2000 10:22 AM
> To: modperl@apache.org
> Subject: (Embperl) blank fields not appearing in %fdat and @ffld
>
>
> I have this problem where blank text fields in a <form> aren't
> appearing in the %fdat hash and @ffld array in the submit page...
> I was wondering if this is a bug in Embperl or some configuration
> thing that I've overlooked.  (the form's going to a submit that
> needs to be able to set db fields to be blank & form field
> names correspond directly to db fields).
>

You need to set the option optAllFormData in EMBPERL_OPTIONS to get the
desired behaviour. Embperl normaly strips out blanks form fields in %fdat.

Gerald