class main in PHP file $_POST

Asked

Viewed 41 times

0

I arrived in a situation that gave a result a little confused here..

I have a. php file in which I have a class called main, if I urge this class main -> $main = new main the $_POST array that used to have some variables is empty, but if I change the class name to main*, that is to say, maind, mainc, or any other name. the $_POST is not reset, or if I read the variables before instantiating the main class, but after it is empty.

What’s happening when I urge the main class? am I overwriting any class that interferes with the $_POST?

Note: the main class I created myself, I nicknamed this name because I didn’t need to be specific.

  • 1

    Can’t tell without the code and without seeing the call.

  • OK, in a little while I put, obg by the warning. :)

  • 1

    And the code :) ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.