I'm making an array with the LINK names for, and, well, I don't know howto call them up. :-p
I do, but I don't,
$function_array1["submit_news"] = submit_news();
$function_array1["submit_news_post"] = submit_news_post();
$function_array1["news_submitted"] = news_submitted();
Then what calls it up, is:
foreach($function_array1 as $value => $key)
{
if($page==$value){$key;};
}
I realised, that foreach doesn't work. heh, the array is for the
admin.php?=submit_news etc.. and if I do foreach, all 3 pages will be combined into the one.
This is how it works.
Function submit_news()
{
page for submit_news() is here
}
then I put it into the array, which then converts to the $value / $key, and then, I put the IF statement (for the page name, and key)
Anyone get what I'm trying to do?
(I want to keep it dynamic, I could just create each if statement, 3 times.)