3

i have this two lines:

  var_dump($parametros_post_signin);

  $this->redirect('prueba/aux?email='.$parametros_post_signin['signin']);

the first one prints this:

array
  'signin' => 
    array
      'email_address' => string '' (length=0)
      'password' => string '' (length=0)

the second one takes to another action where i have this code:

var_dump($request->getParameter('email'));

that prints this:

string 'password' (length=8)

I expected it to print something like this:

string '' (length=0)

What should i do to the get value of the 'email_address' field ?

Regards

Javi

1 Answer 1

3

Try replacing

$parametros_post_signin['signin']

with

$parametros_post_signin['signin']['email_address']

in the 2nd line.

$parametros_post_signin is a 2D array, to get to the email address you'll have to specify two dimensions.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.