You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Kee Hinckley <na...@somewhere.com> on 2002/07/26 00:54:34 UTC

optUndefToEmptyValue off, and multipart/form-data in 1.3.3

I don't have optUndefToEmptyValue set, so the default behavior is
that empty items aren't put in %fdat.  However when I changed my form
type to multipart/form-data, the the behavior changed.  Now are
inserted in %fdat.
-- 

Kee Hinckley - Somewhere.Com, LLC
http://consulting.somewhere.com/

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

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


Re: optUndefToEmptyValue off, and multipart/form-data in 1.3.3

Posted by Gerald Richter <ri...@ecos.de>.
> I don't have optUndefToEmptyValue set, so the default behavior is
> that empty items aren't put in %fdat.  However when I changed my form
> type to multipart/form-data, the the behavior changed.  Now are
> inserted in %fdat.

Yes, that's inconsitent, but it's the way it is...

To get the old behaviour put the following code at the top of your page

[-
foreach (keys %fdat)
    {
    delete $fdat{$_} if ($fdat{$_} eq '') ;
    }
-]

Gerald




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