What does the PHP error message “Notice: Use of undefined constant” mean?

前端 未结 9 2174
悲&欢浪女
悲&欢浪女 2020-11-21 05:04

PHP is writing this error in the logs: \"Notice: Use of undefined constant\".

Error in logs:

PHP Notice:  Use of undefined constant          


        
9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-21 05:48

    You missed putting single quotes around your array keys:

    $_POST[email]

    should be:

    $_POST['email']

提交回复
热议问题