I have index.php which has include("calendar.php") inside it.
index.php contains the $passdate field which is accessible inside calendar.php.
I also have an include("calendarnew.php") inside calendar.php and I want to pass the $passdate field again. It does not get it because it actually resides inside index.php where the calculation resides.
I hope this is not too confusing. How do I pass a derived field from one file to another to another using include statements?
I received some good answers but I don't think that I was clear. The first file is calling the second with an include statement. but, the second is calling the third using href. This causes the variable in the 1st file to not be accessable in the 3rd. I hope that clarifies things. thanks