Hello again,
I have a link on my page where one of the parameters is a URL, that is:
<a href="linkpage.php?par=1&goto=<php urlencode("page1.php?par1=a&par2=b").">link</a>
The goto parameter is actually equal to:
page1.php?par1=a&par2=b
On the link page I use the goto value to link me to another page after passing it thru the function urldecode.
However, it only returns:
page1.php?par1=a
that is, the last parameter par2=b in the goto url is recognised as a parameter for linkpage.php.
Can anyone tell me how to fix this problem? Am I misusing the urlencode/decode functions incorrectly?
++Tx
Pete
PS: I did the same trick with the functions rawurlencode and rawurldecode with the same result.