I'm having a bit of difficult with a redirect variable for logging into my phpbb forum. I have a dynamically generated "LOGIN" link on my site that changes the redirect variable depending on the page. The tricky part is that all my pages are dynamically generated using variables themselves. So a typical example would be:
http://www.b-pops.com/wow/spell.php?id=1240
Most of the time this isn't a problem, my Login link looks like:
http://www.b-pops.com/forums/login.php? ... hp?id=1240
But if I have a second variable in there, i.e.
http://www.b-pops.com/wow/spell.php?id=1240&mode=post
then the "LOGIN" link generated looks like:
http://www.b-pops.com/forums/login.php? ... &mode=post
which also looks how it should. But when I click this one, and login, it redirects to
http://www.b-pops.com/forums/login.php? ... XXXXXXXXXX
(Note the character before mode is '?' NOT '&' as it should be). Since my Login link is generated correctly, I don't think this is something I'm doing wrong. Anyone know a solution?