User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 370,569 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,974 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 9 of 9
Search took 0.01 seconds.
Posts Made By: phploveisgood
Forum: PHP May 16th, 2008
Replies: 19
Views: 777
Posted By phploveisgood
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
Posted By phploveisgood
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
Posted By phploveisgood
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
Posted By phploveisgood
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
Posted By phploveisgood
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
Posted By phploveisgood
Re: $_server['script_name']

I have tried the code, but did not work.

Regards
Forum: PHP May 10th, 2008
Replies: 19
Views: 777
Posted By phploveisgood
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
Posted By phploveisgood
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
Posted By phploveisgood
$_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:...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 4:59 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC