Encoding $_GET variable URL ignores ampersand "&" character
===

So im trying to get an url that looks like this:

    http://mysite.com/url.php?name=http://test.com/format.jsp?id=738ths3&secure=false

I'm using the $_GET variable to read it right off the URL my code is as follows

    $arc = rawurlencode($_GET['name']);
    echo "URL: $arc";

This only returns

    URL: http://imgur.com/format.jsp?id=738ths3

It 's missing the &secure=false

I have tried urlencode, rawurlencode with no avail, i have looked in google a number of forums and stackoverflow none of the answer help, any ideas? Thanks!

urlencode shows this:

URL: http%3A%2F%2Ftest.com

so i cant have that either!