I'm trying to pass the variable $userhash to the url but for some reason it's not working. Here's my code:
header("Location: home.php?userhash=$userhash");
I know userhash has a value because I can echo it and see it if I comment out the header.
I tried doing something like this:
header("Location: home.php?userhash=test");
and also
header("Location: home.php?userhash='test'");
but each time I it redirects me to the next page the url always looks like this home.php?userhash=. What am I doing wrong?
home.phpcode