okay, code from the page sending the anchor...
Sorry, trying lots of variables trying to get the URL to work with PHP!
LINK.PHP
<?
$dayofweek = date("l");
echo $dayofweek;
echo "<- value to send to anchor on other page></br>";
//echo "<a href=logplain.php?dayname=$dayofweek#dayname>link to today</a>";
echo '<a href=logplain.php?dayname='.$dayofweek.'#dayname>link to today 1 - a href=logplain.php?dayname='.$dayofweek.'#dayname</a></br>';
echo "<a href='logplain.php#" . $dayofweek . "'>Link to today 2 - a href='logplain.php#" . $dayofweek . "'</a></br>";
echo "<a href='logplain.php?dayname=" . $dayofweek . "#" . $dayofweek . "'>Link to today 3 - a href='logplain.php?dayname=" . $dayofweek . "#" . $dayofweek . "'</a></br>";
echo '<a href="logplain.php?dayname=' . $dayofweek . '#' . $dayname . '">link to today</a>';
?>
The page I am linking to with the anchors defined correctly (I think!) I need the anchor value to be dynamic as the value is determined from "today"...
logplain.php
echo "<TD BGCOLOR=$color ALIGN=CENTER VALIGN=TOP width=20% ROWSPAN=2><FONT FACE=verdana COLOR=#000000 SIZE=2>";
echo "<a dayname=$danum2>"
This generates HTML that utimately creates an anchor tag below with a dynamic value set (via PHP query) in the anchor. Here is how my anchor looks in the HTML of the page I am linking to:
<a dayname=Thursday></a>
So what I am trying to establish is the main page (link.php) calling this anchor above correctly to go right to the location where "Thursday" is located.
Seems rather challenging via a PHP page vs. using a HTML# anchor. Not sure why???
Thanks!