TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 702
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 102
  • Total: 103
  • tino

How to detect current page/article in URL

Started by lebisol, November 19, 2007, 11:26:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lebisol

Hello there,
I am trying to create a condition in order to detect on which page/article user is currently reading. Goal is then to use this variable to add and controll more "main tabs".
Here is the snip I tried:

if (isset($_GET['page'])) && page="My-First-Article"
$current_action = 'Article1';
else
$current_action="Any-Other"


Basically I need help to figure out what the "page action" value is in URL ~http://site.com/index.php?page=A-B-C

Not much php skill just ideas :).
Thanks for your time!

jacortina


lebisol

..and that simply did it  ;)
thanks J.A.Cortina!

This website is proudly hosted on Crocweb Cloud Website Hosting.