Well, that code makes no sense at all…
First, it opens and closes PHP for no reason.
It closes a label without opening it.
It closes the body before it opens it.
And, it has a form outside of the HTML tags.
So, none of that will work at all… Not sure what is going on here, but, that code would never work.
It was never a working “Aging Site” !
Here is it fixed up, but not sure if that is what you want…
[php]
Pollination Project
<?php
$datey = date("d/m/Y");
list($month, $day, $year) = split('[/.-]', $datey);
$monthtrimmed = ltrim($month, "0");
$daytrimmed = ltrim($day, "0");
$jd = GregorianToJD($daytrimmed, $monthtrimmed, $year);
header('Location: yearatglance2.php?d='.$jd);
?>
" />
[/php]
So, this is kinda fixed up. BUT, the form will never be executed so it is just a waste.
All your page does is load some strange code to grab the date and convert it to JD format
and then pass it to another page? Silly code as the other page could do this code, too.
Not really sure what you are attempting to do, but let us know…