Notice: Use of undefined constant username - assumed 'username' in
/home/content/04/7195304/html/header.php on line 54
Run Code Online (Sandbox Code Playgroud)
喜欢写东西的时候,我得到这个$_COOKIE[username]或$_POST[username].
编辑
所以我一直在玩代码,在我的POST,COOKIE和GET中加上引号......我仍然得到同样的东西!
这意味着您可能忘记了变量名称前面的$.
编辑 您需要在qoutes中封装您的呼叫.即
$_COOKIE["username"]
Run Code Online (Sandbox Code Playgroud)
要么
$_POST["username"]
Run Code Online (Sandbox Code Playgroud)