You need to make tabs on php about how here on the site

"Questions Tags Participants Signs Research"

After clicking, the same page is loaded but with add. parameters in $ _GET, and based on this php displays the desired template

The problem is how to change the style of the tab?

https://ru.stackoverflow.com/questions/?sort=%D1%82%D0%B5%D0%BA%D1%83%D1%89 %D0B8%D0%B5

That's right

Only via php? And here is php done as well? It means adding class = active ...


After all, I said that the content is loaded only by clicking. And only in one div)) I don't need jquery, I need regular tabs with reloading the page. Tabs on jquery are 99% of all tutorials in the internet, making them easy. But for me they are not suitable. I did it in my own way. I was just wondering how this is implemented on this site?

Closed due to the fact that the essence of the issue is incomprehensible by the participants Duck Learns to Hide , user194374, Alex , Vadim Ovchinnikov , aleksandr barakin 4 Jan '17 at 20:49 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • four
    I understand from your question ... nothing! - Arc
  • 2
    in the sense of making active? Well, in php, determine which tab you stuck and assign the class "active" to it, create a css rule for this - zb '
  • Do it on css and javascript - cas
  • Write a normal question - cas
  • $ _GET is a global array containing variables with a GET request ... - hash_code

1 answer 1

I tried to understand you for a very long time and perhaps I didn’t succeed. BUT.

<div id="menu"> <div <?if(isset($_GET['questions']))echo 'class="active"'?>>Вопросы</div> <div <?if(isset($_GET['marks']))echo 'class="active"'?>>Метки</div> <div <?if(isset($_GET['members']))echo 'class="active"'?>>Участники</div> <div <?if(isset($_GET['signs']))echo 'class="active"'?>>Знаки</div> <div <?if(isset($_GET['expeditions']))echo 'class="active"'?>>Исследования</div> </div>