List:Summer of Code« Previous MessageNext Message »
From:Zahra Naeem Date:June 23 2009 9:09am
Subject:Re: HELP! Problem using $REQUEST and $POST variables
View as plain text  
Another problem I am encountring is that when I want to check the patch at
my local repository, pma login page appears.
Can someone tell me what is the username and password.

Thanks Michal,
As per your suggestion I used the function
PMA_generate_common_hidden_inputs() from libraries/url_generating.lib.php to
make a token for the form and now $_REQUEST works fine.

On Tue, Jun 23, 2009 at 12:15 PM, Michal Čihař <michal@stripped> wrote:

> Hi
>
> First I think that phpmyadmin-devel is the right list for this question.
>
> Dne Tue, 23 Jun 2009 02:37:09 +0500
> Zahra Naeem <xara.fast@stripped> napsal(a):
>
> > Hope all of you are doing great and having fun at GSoC.
> >
> > Hey guys! could anyone help me out with this problem.
> >
> > Whenever I try to retrieve data from a "form" using  $_REQUEST or $_POST
> > variables when I am also including certain files at the top of the page
> > using require_once function call, it cannot not find any values in the
> > $_REQUEST or $_POST variables.
> >
> > Whereas, if I first retrieve the same values using the $_REQUEST or
> $_POST
> > variables and then include all the files using require_once function, it
> > finds values in $_REQUEST or $_POST variables.
> >
> > My problem is that I have to include those files before I retrieve data
> from
> > the "form" using these variables.
> >
> > I have tried to retreive data and save it in simple php variables before
> > including the files. But those variable show values before the
> require_once
> > function but do not show any value after the code lines that call the
> > function require_once().
> >
> > This is pretty strange but I hope any one of you would be able to suggest
> > some appropriate solution for my problem.
>
> It looks like you do not propagate token over your form, what leads to
> removal of all non whitelisted variables from request. Use one of
> functions in libraries/url_generating.lib.php to include token and
> other common magic in your form.
>
> --
>        Michal Čihař | http://cihar.com | http://blog.cihar.com
>

Thread
HELP! Problem using $REQUEST and $POST variablesZahra Naeem22 Jun
  • Re: HELP! Problem using $REQUEST and $POST variablesMichal Čihař23 Jun
    • Re: HELP! Problem using $REQUEST and $POST variablesZahra Naeem23 Jun