Forum: PHP May 16th, 2008 |
| Replies: 19 Views: 777 Re: $_server['script_name'] When I code it this way, the styling will display on both links at thesame time. And I want it one at a time. That is, when on index.php, show style and when kamin.php, show style.
<!-- Navigation... |
Forum: PHP May 16th, 2008 |
| Replies: 19 Views: 777 Re: $_server['script_name'] When I code it this way, the styling will display on both links at thesame time. And I want it one at a time. That is, when on index.php, show style and when kamin.php, show style.
<!-- Navigation... |
Forum: PHP May 15th, 2008 |
| Replies: 19 Views: 777 Re: $_server['script_name'] It works fine on index.php. But when trying it on kamin.php, the style will appear on both links. Bobo is the folder on the sever and in this folder is all my php files.
<?php
$bobo =... |
Forum: PHP May 15th, 2008 |
| Replies: 19 Views: 777 Re: $_server['script_name'] Hallo, thanks again. The $style_home gives the active link another color, to specify the user which page he is viewing. This is part of the code:
<!-- Navigation item -->
<?php
$bobo =... |
Forum: PHP May 11th, 2008 |
| Replies: 19 Views: 777 Re: $_server['script_name'] Thanks alot! It works! But only on the "Home link". I tried to put t on "About us, News etc. links" by using ELSEIF, it did not work. Regards |
Forum: PHP May 11th, 2008 |
| Replies: 19 Views: 777 |
Forum: PHP May 10th, 2008 |
| Replies: 19 Views: 777 Re: $_server['script_name'] I have tried the code you send to me, but it did not work.
And when I tried the first code you sent:
<?php
if($_SERVER['SCRIPT_NAME'] == '/bobo/index.php')
{
$style_home =... |
Forum: PHP May 9th, 2008 |
| Replies: 19 Views: 777 Re: $_server['script_name'] Excuse me! I don't realy understand what you mean. These are my code:
<?php
if($_SERVER['SCRIPT_NAME'] == '/bobo/index.php')
{
$style_home = 'style="background-color: #6C674F"';
}
?>
<ul> |
Forum: PHP May 9th, 2008 |
| Replies: 19 Views: 777 $_server['script_name'] Please I need some help!
When I am developing, these code below works fine:
<?php
if($_SERVER['SCRIPT_NAME'] == '/aktuelle seite/index.php')
{
$style_home = 'style="background-color:... |