Hi,
I just want toconfirm my problem...(May be i know the reason)
I have a PHP Include Script that contain all common function for a site.... It has the function for the Header and footer for HTML head tag and end of HTML page the fucntion are simple
function page_header()
{
include("header.php");
}
function page_footer()
{
include("footer.php");
}
This site function file is called from the Page I want. say for product page I include the site_fucntions.php (which has these header and footer fucntion) and than simply call the function when require
Now the file header.php and footer.php makes a call for the $POST and $COOKIE super global variable
But that doesn't seems to be working when put in the header.php
Though If i put that code in the site_function.php (out side teh function) it works.
Now it seems alright that funcion need the delcaration (with global keyword) for the variable or global variable but they need declaration of the SUPER Global variables as well????
And this what my question is... 😕
Any suggestions