Hello, I'm trying to redirect to another page with GET variables:
header('Location: http://example.com/page.php?action=viewPollResults&success=$votesupdated&member=$username');
But it redirects to this URL:
http://example.com/page.php?action=viewPollResults&success=$votesupdated&member=$username
The variable value's are not there :glare:
For example it should be like this:
http://example.com/page.php?action=viewPollResults&success=1&member=tracdoor
put it in " or remove the '
As formlesstree4 suggested, variable interpolation isn't done in single-quoted strings. More info on that in the manual: [man]string[/man].