Hi
I have created a function
function topPageURL($array='')
that optionally takes an array (most likely HTTP_POST or GET_VARS) and returns a variable $cfgToTop that contains the URL with any appended vars (ie: after the ?) to link to the top of the current page.
Works fine.
What I am trying to do is to incorporate this function inside another that creates a standard page footer:
// PAGE FOOTER function
function pacrimFooter($array=''){
topPageURL($array);
global $cfgToTop;
echo "\t\t</td>\n";
echo "\t</tr>\n";
echo "\t<tr bgcolor=\"#ffffff\" valign=\"bottom\">\n";
echo "\t\t<td align=\"right\"><a href=\"" . $cfgToTop . "\"><img src=\"images/top.gif\" width=\"48\" height=\"24\" alt=\"^ top of page \" border=\"0\"></a></td>\n";
echo "\t</tr>\n";
echo "</table>\n";
echo "</body>\n";
echo "";
}
This function works fine too, except that I am trying to pass $array from the pacrimFooter($array) function into the embedded topPageURL($array)function
Can I do that ???? If so how?
tw::ker