php switch menu undefined variable -


this question has answer here:

the following code has been moved new server , throwing 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 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");     } } ?> 

i didn't understand lang problrem not using $_get['menu'] retrieve parameter.

$menu = $_get['menu']; switch($menu) { .... } 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -