Jump to content

unable to use & in URL in HEADER()


jasonc

Recommended Posts

I have tried variouos method from & to & and even placingf it in a string

 

but can not seem to get the & in the URL so it validates with w3.org

$ampersand = "&";
header("Location: index.php?" . $gets . $ampersand . "phpsession=" . $phpsession);

 

what is the correct method to add a & in the URL

Link to comment
https://forums.phpfreaks.com/topic/203355-unable-to-use-in-url-in-header/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.