Q:

PHP - difficulty Passing encrypted string to another page via string encryption

wit regards to Best way to use PHP to encrypt and decrypt passwords?
i encountered problems passing encrypted strings to another page. 
in my case,  i would like to send out a registration link to the user such as 
www.xyz.com/reg.php?x=xxxxxxxxxxx
in which xxxxxxx contains email address and user's full name information in an encrypted serialized array as string.
however when user clicks the link, the decrypted strings is different from the original string before encryption.
sometimes the information if partially decrypted and the rest is garbage. 
anyone can explain why is this happening ?
thanks in advance. 

A:

You are using URL unsafe characters, like + (from base64). you need to urlencode() / urldecode() your parameter.

