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 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 & Link to comment https://forums.phpfreaks.com/topic/69646-_serverrequest_uri/#findComment-349943 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.