Undefined Variable, Undefined Index
Posted: Fri Dec 19, 2003 12:58 am
I am novice, and wish to know how to resolve this problem.
Before that I have read some of the suggestion in this forum, and I think it is due to the later version of PHP having the global_variable = off.
After tried some of the suggested codes, but still having the same problem.
Error :
Notice: Undefined index: beef in C:\Program Files\Apache
Group\Apache2\htdocs\test\index.php on line 2
Notice: Undefined index: beef in C:\Program Files\Apache
Group\Apache2\htdocs\test\index.php on line 3
--- the code for the above is : SetCookie ("beef",$HTTP_GET_VARS['beef'],time()-3600);
Notice: Undefined variable: HTTP_SESSION_VARS in C:\Program Files\Apache
Group\Apache2\htdocs\test\top.php on line 7
Notice: Undefined variable: HTTP_SESSION_VARS in C:\Program Files\Apache> Group\Apache2
---the code for the above is: $ber=$HTTP_SESSION_VARS['bers'];
I have tried to set the global_variable to ON, and the problem still exists.
Any advise is appreciated!
Regards,
El
Before that I have read some of the suggestion in this forum, and I think it is due to the later version of PHP having the global_variable = off.
After tried some of the suggested codes, but still having the same problem.
Error :
Notice: Undefined index: beef in C:\Program Files\Apache
Group\Apache2\htdocs\test\index.php on line 2
Notice: Undefined index: beef in C:\Program Files\Apache
Group\Apache2\htdocs\test\index.php on line 3
--- the code for the above is : SetCookie ("beef",$HTTP_GET_VARS['beef'],time()-3600);
Notice: Undefined variable: HTTP_SESSION_VARS in C:\Program Files\Apache
Group\Apache2\htdocs\test\top.php on line 7
Notice: Undefined variable: HTTP_SESSION_VARS in C:\Program Files\Apache> Group\Apache2
---the code for the above is: $ber=$HTTP_SESSION_VARS['bers'];
I have tried to set the global_variable to ON, and the problem still exists.
Any advise is appreciated!
Regards,
El