Jump to content

help with php include file


rkolinsky

Recommended Posts

I am using the following code for a navigation bar.  How do I change the size and color of the font.  I am very new to php.

 

$page = end(explode('/',$_SERVER["SCRIPT_NAME"])); #This gets the current page's name.

 

if ($page == "index.php") #Just test the page's name

print('<span style="currentpage; >Panama Homepage</span>'); #And print the 'you're here' HTML

else

print('<a href="index.php">Panama Homepage</a>'); #Or, the 'you're not here' HTML

 

print ' '; print ' '; print ' '; print ' '; print ' '; print ' '; print ' '; print ' '; print ' ';

 

if ($page == "contact.php")

print('<span style="currentpage">Contact Us</span>');

else

print('<a href="contact.php"text-decoration:none;>Contact Us</a>');

 

print ' '; print ' '; print ' '; print ' '; print ' '; print ' '; print ' '; print ' '; print ' ';

 

 

if ($page == "kunayala.php")

print('<span style="currentpage">Kuna Yala</span>');

else

print('<a href="kunayala.php">Kuna Yala</a>');

 

print ' '; print ' '; print ' '; print ' '; print ' '; print ' '; print ' '; print ' '; print ' ';

 

print '<br>';

Link to comment
https://forums.phpfreaks.com/topic/181349-help-with-php-include-file/
Share on other sites

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.