The following code has been moved to a new server and is throwing this error:
Notice: Undefined variable: menu in * on line 128
Notice: Undefined variable: menu in * on line 160
Notice: Undefined variable: menu in * on line 170
Here is the code:
<a href="index.php?menu=profile">Profile</a>
<a href="index.php?menu=regisztracio">Regisztráció</a>
<a href="index.php?menu=kapcsolat">Kapcsolat</a>
<?php switch($menu)
{
case "profile":
{
echo("profil");
}
case "regisztracio":
{
echo("regisztráció");
}
case "kapcsolat":
{
echo("kapcsolat");
}
default:
{
echo("Home page");
}
}
?>