Mr Chris Posted September 17, 2007 Share Posted September 17, 2007 Hi Guys, On my webpage i'm using <?php echo $_SERVER['REQUEST_URI'] ;?> to get the URL of the page, which is returning the URL in my html page as: /index.php?section=news&story_id=4 Now that's fine, but I want it to return the code in HTML ie: /index.php?section=news&story_id=4 ie amp' in my html instead of &. Is there any way I can do this? Thanks Chris Quote Link to comment https://forums.phpfreaks.com/topic/69646-_serverrequest_uri/ Share on other sites More sharing options...
wildteen88 Posted September 17, 2007 Share Posted September 17, 2007 use htmlentities or htmlspecialchars on the REQUEST_URI server variable. To convert & to & Quote Link to comment https://forums.phpfreaks.com/topic/69646-_serverrequest_uri/#findComment-349943 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.