calling functions to form menus
| From: | webmaster at ipo dot asu dot edu | Date: | Mon, 04 Dec 2000 21:21:17 +0000 |
| Subject: | calling functions to form menus | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-28639@lists.php.net to get a copy of this message | ||
Greetings,
Got a tiny problem that I'm unable to figure out. In one file I've
written two functions, one which forms the table layout for the page,
and another which forms the links that make up the menu side of the
table.
In the page that calls the functions I've tried assigning the output of
the Menu() function to a variable $menu and insert it into the main
page.
require("FormatPage.php");
$menu = Menu();
$title ="stuff";
$header="more stuff";
MainPage($title, $header, $menu);
The menu does not get placed inside the table of MainPage, instead it's
formed above the table. Other than that the functions work fine.
Is there any way to assign the output of a function to a single variable
and place it inside the table where it's supposed to be?
Thanks.