다음 코드는 새로운 서버로 이동되었으며,이 오류를 던지고 : 여기 PHP 스위치 메뉴 정의 변수
Notice: Undefined variable: menu in * on line 128
Notice: Undefined variable: menu in * on line 160
Notice: Undefined variable: menu in * on line 170
코드이다
<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");
}
}
?>
어디서 $ menu? –
StackOverflow에 오신 것을 환영합니다. 질의 응답은 영어로되어 있기 때문에 원하는 것을 이해할 수있는 더 큰 기회가 있습니다. 귀하의 게시물을 번역하십시오! – Michael