Hi all !
i have just started php couple week ago and i am having a nice issue !
Notice: Undefined index: page in /Volumes/Files/Works/htdocs/**.com/inc/
here is my menu.php
<?php
$pag=isset($_GET['page']) ? $_GET['page'] : null;
switch($pag)
{
case 'home':?>Home - Personal Portfiolo - website<?php
break;
case 'works':?>Works - webdesign - hypermedia - interactif - video<?php
break;
case 'about':?>About - resume - curriculum vitae<?php
break;
case 'contact':?>Contact me.<?php
break;
default:?>Home - Personal Portfiolo - website<?php
break;
}
?>
here is the php in my index.php
$pagesOK['home'] = 'inc/home.php';
$pagesOK['works'] = 'inc/works.php';
$pagesOK['about'] = 'inc/about.php';
$pagesOK['contact'] = 'inc/contact.php';
$page = 'home';
if(!empty($_GET['page']) && array_key_exists($_GET['page'], $pagesOK))
{
$page = $_GET['page'];
}
if you have any idea, please let me know !
tks in advance
Arnaud