redirect - PHP - & in header() -
i have parameter:
http://example.com?ex=http://la.net?c1=a1&c2=a2&c3=a3 i want redirect url, while it, i'm getting into
http://example.com?ex=http://la.net?c1=a1 i know it's because of & sign...
you should encode parameters passed url:
$url = "http://example.com?ex=".urlencode("http://la.net?c1=a1&c2=a2&c3=a3"); header('location: '.$url);
Comments
Post a Comment