Jump to content

Code to echo link title on page?


linkjg

Recommended Posts

Hello,

This is my first post to the board and I'm a newbie with PHP!

I have a menu in navigation.php that is called in index.php by:

<?php include("navigation.php"); ?>

I have a spot on my index.php that I would like the name of the link to also appear on that corner of the page, like a page header.  So, if the "Home" link is selected, "Home" appears above the welcome article.

Is there a PHP method for placing the link name also on a specified corner of the index page?

Thanks for your help!
Link to comment
https://forums.phpfreaks.com/topic/13659-code-to-echo-link-title-on-page/
Share on other sites

Hi Sharkbait,

I have a 2 column layout... header top, footer bottom, menu left, content right.

The menu has something like:

Home
Stuff 1
Stuff 2

I have a blank row over the content on the right which is blank. When a user clicks on the link "home", I'd like the text "home" to appear in the empty bar.

Thanks for your help!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.