I have a menu with a bunch of items. How can I clean up this code and push it through 
a function?
Your basic newbie Question :)
Thanks,
John

<p><a class="nav" href="index.html"><?php
if(stristr($_SERVER["SCRIPT_FILENAME"],"index.html"))
{
echo "<b>Home</b>";
}else{
echo "Home";
}
?></a>
<p><a class="nav" href="index.html"><?php
if(stristr($_SERVER["SCRIPT_FILENAME"],"search.html"))
{
echo "<b>Search</b>";
}else{
echo "Search";
}
?></a>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to