getting current page url

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings All,

Possibly a very simple question but here goes. How would I code the following in PHP?

if(window.location == (("http://www.epda.cc/index.php";) || ("http://www.epda.cc/";))) {
       $current_nav = "includes/home_nav.php";
   } else {
       $current_nav = "includes/inside_nav.php";
   }

What I am trying to accomplish is something like this:

<?php if(window.location == (("http://www.epda.cc/index.php";) || ("http://www.epda.cc/";))) {
       $current_nav = "includes/home_nav.php";
   } else {
       $current_nav = "includes/inside_nav.php";
   }
   ?>
   <?php include($current_nav); ?>

Thanks!

--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux