Jump to content

Change Content According to URL


thirteen13

Recommended Posts

I need to display different content according to the URL of the website.

 

For example:

 

If the url is: http://test.com/page.php?id=10&p=17&s=25&i=26 then the html displays <p>This is the first page</p>

If the url is: http://test.com/page.php?id=10&p=18&s=109&i=104 then the html displays <p>This is the second page</p>

 

How can it be done?

Link to comment
https://forums.phpfreaks.com/topic/198488-change-content-according-to-url/
Share on other sites

I want one php script which gets the URL and displays 'This is the first page' if the page visited is 'http://test.com/page.php?id=10&p=17&s=25&i=26' and to display 'This is the second page' if the page visited is 'http://test.com/page.php?id=10&p=18&s=109&i=104'

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.