2012-02-14 56 views
-1

我收到了這條線一個未定義的索引錯誤:對於所獲得的值未定義指數從獲得

$msg = $_GET['msg']; 
+0

http://stackoverflow.com/search?q=[php]+Notice%3A +未定義+索引 – animuson 2012-02-14 06:31:41

+0

[PHP:「Notice:Undefined variable」](http://stackoverflow.com/questions/4261133/php-notice-undefined-variable) – animuson 2012-02-14 06:33:06

回答

0
if(array_key_exists('msg',$_GET)) 
{ 
//Your Code 

}