Hi. I am trying to figure out how to access global variables like form variables within a class. This code, within a class, didnt work
var $postvar = $HTTP_POST_VARS["postvar"];
. It resulted in errors. Any help. Bye. -B-
You would need to declare this as "global" before you can access it...
e.g.
function SomeClassMethod() { global $HTTP_POST_VARS; $value = $HTTP_POST_VARS["postvar"]; etc... }