Jump to content

$_SERVER['REQUEST_URI']?


Mr Chris

Recommended Posts

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

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.