At 06:14 PM 8/15/2001, Wolfgang Schneider wrote:

oops -  i forgot - I use functions similar tp the ones used on 
php.net.  when i call the function i pass $title to it....

define $title and it should work. :-)

~kurth

>On Tue, 14 Aug 2001 11:39:55 -0400, Kurth Bemis wrote:
>
> >just stick this in a function as I did and you'll be sailing.....its easy
> >to update, and Extremely flexible.
> >
> >look at my code.. (rest snipped)
>
>
>Hi Kurth, and others
>
>I adjusted your code for the purpose of my site (replacing he values in
>the array and the homepage address, etc) ... but when I plugged it into
>a page for testing; i got the following results:
>
>Location : Home /
>Warning: Undefined variable: link in visitheadnav-1.inc on line 70
>Besucher /
>Warning: Undefined index: support.php3 in visitheadnav-1.inc on line 68
>Warning: Undefined variable: title in visitheadnav-1.inc on line 73
>
>The code is part of an include file named "visitheadnav-1.inc" ... and
>apparently there is some "link" there in the code which is "an
>undefined variable" ... but I have no idea what this error message is
>about  :-(    The results "Home/" and "Besucher/" are actually correct
>... it's just the "undefined link" problem I need to get figured out
>... Here's the code I inserted into my visitheadnav-1.inc:
>
><p class="fn8">Location : <a href="http://www.bibelcenter.de.";>Home</a>
>/
><?php
>$patharray = explode ("/",$SCRIPT_NAME);
>$scriptname = basename($SCRIPT_NAME);
>   for ($dirsi = 1; $dirsi < count($patharray); $dirsi++)
>    {
>      $dirs = array(
>       'visitor' => 'Besucher',
>       'info' => 'Information',
>       'bibel' => 'Bibelarbeit',
>       'bibliothek' => 'Bibliothek',
>       'gebet' => 'Gebetsraum',
>       'links' => 'Internet Links',
>       'kids' => 'Kinderecke',
>       'shop' => 'Bookshop'
>           );
>
>                  $linkdes = $dirs[$patharray[$dirsi]];
>                  $link = $link . "/$patharray[$dirsi]";
>                  if ($patharray[$dirsi] == $scriptname){
>                          $linkdes = $title;
>                          $slash = "";
>                          $linkhtml = "<a
>href=\"$link\">$linkdes</a>$slash";
>                                  if ($patharray[$dirsi] ==
>"index.php"){
>                                          $link = "";
>                                          $linkdes = "";
>                                          $slash = "";
>                                          $linkhtml = "";
>                                  }
>                  }else{
>                          $slash = " / ";
>                          $linkhtml = "<a
>href=\"$link\">$linkdes</a>$slash";
>                  }
>echo $linkhtml;
>          }
>?></p>
>
>Any ideas, what may be wrong and causing these error messages?
>
>
>God bless you with His grace and peace
>Wolfgang
>
>Looking for Biblical information? COME AND SEE!
>-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
>-- BibelCenter: http://www.bibelcenter.de
>-- Bookstore: http://www.worthy.net/BibelCenter/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to