php - Included file changing url -


I have searched the Internet for a few hours now but I am unable to answer my question.

How do I switch between the included PHP file in the URL?

The following is my included file:

  & lt; Li class = "werkgeversNavbar" & gt; & Lt; A href = & lt ;? Php echo '' '.' Http: //'.$_SERVER ['SERVER_NAME'] '/ Dritjob / werkgevers.php' '? & Gt; & Gt; Veer Workers & lt; / A & gt; & Lt; A href = & lt ;? Php echo '' '.' Http: //'.$_SERVER ['SERVER_NAME'] '/ Dritjob / index.php' '? & Gt; & Gt; Veer werkzoekende & lt; / A & gt; & Lt; / Li & gt; For example, when I'm on my 'index.php', I want to show the first link, and when I click on that link, I want to change it to 'werkgevers.php'. 'Index.php'  

How can this be achieved? Sorry for my bad english, no one would be good to play again, thanks for your time!

Fix this one just for your problem quickly, but if you've got the point, Complicated:

  & lt; Li class = "werkgeversNavbar" & gt; & Lt ;? Php if ($ _SERVER ['SCRIPT_NAME'] == '/index.php') {? & Gt; & Lt; A href = "http: // 

  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -