Hey ,
I've made a website with 2 menubuttons(lotto , euromillions).
When I click on lotto -> I must choose a value of a dropdownlist and click on OK.
Now when I click on "OK" after ive picked a value -> it says that the pagename is empty and gives an error.
To fill the pagename I've added an ELSE function, but it does fix only 1 of the 2 forms which is not the point.
Maybe I can fix this by using menuarray to make an IF-ELSE code for the 2 menu.
Can someone give me an idea to solve this ?
Index page -> to write the pagename which selects the included file.
if (array_key_exists($_GET["page"], $arrMenuItems)){
$strPage = $_GET["page"];
}else{
//$strPage = "lotto";
//$strPage = "euromillions";
}
MenuArray -> links to pages
$arrMenuItems = array(
"lotto" => array(
'menuitem'=>'lotto' ,
'page_id' => '?page=lotto',
'page_name' =>'lotto',
'page_content'=> 'lotto/index.php',
'page_css'=>'lotto.css',
),
"euromillions" => array(
'menuitem'=>'euromillions' ,
'page_id' => '?page=euromillions',
'page_name' =>'euromillions',
'page_content'=> 'euromillions/index.php',
'page_css' => 'euromillions.css',
),
);