[Newbie] a function who send the request to another page
-
Hello,
I want to make a function which send me to an another php file.
My problem is that if I use include_once, then it is shown both in 110101_plugin-page.php AND add_workarea.php!
If i use “location in sted, then I receive an error.[CODE]
add_menu_page (‘Medarbejder Plugin’, ‘Medarbejdere’, ‘administrator’, __FILE__, ‘_menu_page’, plugins_url (‘/images/wordpress.png’, __FILE__));
add_submenu_page (__FILE__, ‘H?ndtere’, ‘Medarbejdere’, ‘administrator’, __FILE__, ‘_menu_page’);
add_submenu_page (__FILE__, ‘Tilf?je’, ‘Tilf?je’, ‘administrator’, __FILE__, ‘_add_elements’);function _menu_page() { include_once(“110101_plugin-page.php”); }
function _add_elements_about_employees(){ include_once(“add_workarea.php”); }[/CODE]
Do you know how I can solv this?
One extra question:
Which kind of function is it possible to add to add_menu_page when there is no interface? (just to get some new ideas!)Best regards
Jean-Christophe
- The topic ‘[Newbie] a function who send the request to another page’ is closed to new replies.