ChrisMartino Posted July 24, 2010 Share Posted July 24, 2010 Hello there, Thanks for taking the time to read my thread, ok so here is my problem, I want to be able to have the page url in a get variable, but it conflicts since I have already used get variables in the previous url so I want something like this: index.php?v=account&login&returnurl=index.php?v=packages&pid=3 But as you can see just by looking it's going to conflict and phrase the variables from the previous URL, does anybody know how to overcome this?, thanks in advance. Link to comment https://forums.phpfreaks.com/topic/208777-help-with-_get/ Share on other sites More sharing options...
kenrbnsn Posted July 24, 2010 Share Posted July 24, 2010 You need to use the function urlencode on the string before you add to the URL: <?php $ret = urlencode('index.php?v=packages&pid=3'); echo '<a href="index.php?account&login&returnurl=' . $ret . '">Go here</a>'; ?> Ken Link to comment https://forums.phpfreaks.com/topic/208777-help-with-_get/#findComment-1090675 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.