Yes i'm using strict and it's the string directly from the STDIN. And it's a value 
that don't exist in the radio selection.

like
my $buffer = '';
read(STDIN, $buffer, $ENV{CONTENT_LENGTH});

This can maybe instead be a terrible bug from Microsoft latest browser or something 
but I don't hope so :/

/Tomas
 

----- Original Message ----- 
From: "Oscar Serrano" <[EMAIL PROTECTED]>
To: "Tomas Eriksson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, February 19, 2002 3:05 PM
Subject: Re: A really strange POST problem


> At 10:47 19/02/2002 +0100, Tomas Eriksson wrote: 
> >
> > Hi.
> >  
> > I'm not sure if this a modperl problem but I'm using modperl (5.005), Apache
> > (1.3) under 
> > Debian on my website. 
> >  
> > Using read(STDIN, $ENV{...}, $buffer) to retrieve the post data. At several
> > places i'm using
> > forms with radio buttons from -2 to 2, but from some of my visitors I got
> > almost randomly
> > numbers in the form data xxx=13 xxx=4 etc from the radio buttons. I can read
> > these wrong 
> > values directly in the $buffer string. This happen often if they post many
> > times but seems 
> > to be to other visitors also.  
> >  
> 
> 
> 
> Ummm, not sure, but that seems to be the classical problem of not initialicing
> the variables at the beggining of the script. Mod_perl mantains a copy of the
> value and each time you submit you add the new value to the existing value.
> You
> are getting different values each time, depending of the httpd child that
> serves the script.
> Are you using strict (use strict) at the beggining of the script?
> 
> Oscar Serrano.
> 
> 
> 
> >
> > I hope I'm not the only one in the world that has this problem...
> >  
> > kind regards
> > Tomas
> 
> 
> 
> 
> 

Reply via email to