I’m having issues passing on multiple $_GET variables with “next”.
I’m redirecting users to the login page:
login?next=initial_page?email=john_doe@gmail.com&activate_key=1421sdxzcxz213xz
The problem is that the activation key is treated as a second $_GET parameter on the login page (along with “next”), instead of being part of the redirected $_GET.
A solution would be to use cookies, is there any way I can still make this work with $_GET though?
Thanks!
You need to use
urlencodeto encode the parameter data–something like this:This will produce a link like this:
…which will be interpreted correctly.