megaurav2002 has asked for the wisdom of the Perl Monks concerning the following question:
Now, my problem is that i have to perform some actions when the user clicks "submit"( a button in display page of second method). So to do that i check if (defined $c->request->param("Submit")). Even if the user presses "Submit" this condition is not getting satisfied because i think $c->request->param carries the value of button pressed earlier(in the first method). I hope i made myself clear. Any help will be appreciated. Thanks!sub forgotPassword : Local { my( $self, $c ) = @_; $c->stash->{'content'} = \@tbl_dob_yr; $tbl_user_contact_data = $self->_HandleForgotPassword($c, 'forgotPassw +ord.tt'); if($tbl_user_contact_data) {$self->_HandleForgotPassword2($c, $tbl_user_contact_data, 'forgotPass +word2.tt', 'passwordResetConfirmation.tt'); }}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem with $c->request->param
by shmem (Chancellor) on May 05, 2007 at 07:51 UTC |