I am having some difficulty accessing data that I have posted via a form. I can access the data fine on the calling page. From the "posted to" page, I get a new instance of my object. From within a method of that object, and am trying to access the post data. Here are some examples of what I have tried:
Let's say the posting page has a hidden var
<input type=hidden name="SubFlavorId" value="2">
Then I try the following in my method:
$SubFlavorId
$HTTP_POST_VARS["SubFlavorId"]
global $HTTP_POST_VARS (then the above line again).
I really don't want to have to pass the value into the object, as I have a lot of vars that are being posted.
Any ideas? Am I missing something obvious? Thanks for any help.
Regards,
Jason