Yes, I have been looking at this site and doing my own debugging via prints
etc.
I haven;t seen any problem with uptil now with my code and have spent hours
debugging
this. Would like to know if someone can see any obvious problems here:
package Apache::ChangePassword;
use strict;
use Apache::Constants qw(:common);
use CGI '-autoload';
sub handler {
my $r = shift;
my($oldpass, $newpass1, $confirmpass) = map { param($_) } qw(password
newpassword1 confirmpassword);
my $user = $r->connection->user;
if($user && $pass && $newpass1 && $newpass2)
{
I authenticate...
}
make_passwd_screen($r);
}
The problem is sometimes....even though I enter all the values of the
password on the form
and press the change passwd button, when I am printin the values of
$oldpass/$newpass1/$confirmpass
they are all 0. Other times...this works just fine...and I see the printed
values.
Am I messing with my global variables here ? I don;t seem to think
so.....but..
Any help is highly appreciated.
thanks.
-Tushar
-----Original Message-----
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 03, 2002 12:47 PM
To: Ged Haywood
Cc: modperl
Subject: Re: Some wierd problem with mod_perl and Apache
Ged Haywood wrote:
> Hi there,
>
> On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote:
>
>
>>sometimes.....when I enter the values in the form and click on the
>>"change password" button, the same screen comes back to me without
>>the change actually happening. After doing this couple of times, I
>>would actually succeed.
>
>
> Have you checked out the Guide?
>
> http://perl.apache.org/guide/debug.html
BTW, while /guide is still working, the real url is now
/docs/1.0/guide/, so I'd rather see people use that, because you should
remember that we enter the era of co-existence of mod_perl 1.0 and 2.0,
so /guide is not the *only* guide anymore. Moreover parts of the /guide
that aren't specific to 1.0 have moved into /docs/general/.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com