Notice: Undefined variable: who in /home/ pr0blem can't solve

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    ok fixed! thanks
    Last edited by wapmetal; 03.04.10, 13:03.
    com site: http://vampist.net
    download site: http://wapdloads.net
    fb: http://www.facebook.com/pmplx

    Comment


      #17
      in phpinfo(); found

      error_reporting 6143 6143
      com site: http://vampist.net
      download site: http://wapdloads.net
      fb: http://www.facebook.com/pmplx

      Comment


        #18
        Your script assumes that all variables ($who) are registered globally. This is a bad assumption to make.

        Rather, use the variable from the $HTTP_POST_VARS array:



        $who = $HTTP_POST_VARS["who"];


        If you're using PHP version 4.1 or higher, you can alternatively use $_POST instead of $HTTP_POST_VARS.

        Have fun...
        BakGat
        Code:
        class Counter {
        public:
          void Count();
          int  ReadDisplay();
        private:
          int  CurrentCount;
        };








        Back up my hard drive? How do I put it in reverse?
        My Community
        BakGat
        sigpic

        Comment


          #19
          Originally posted by bOrN2pwn View Post
          Your script assumes that all variables ($who) are registered globally. This is a bad assumption to make.

          Rather, use the variable from the $HTTP_POST_VARS array:



          $who = $HTTP_POST_VARS["who"];


          If you're using PHP version 4.1 or higher, you can alternatively use $_POST instead of $HTTP_POST_VARS.

          Have fun...

          lol i found this on google bro but it don't work !
          com site: http://vampist.net
          download site: http://wapdloads.net
          fb: http://www.facebook.com/pmplx

          Comment


            #20
            well try E_NOTICE i know you want a error free site but thats probaly nothing to worry about.
            BakGat
            Code:
            class Counter {
            public:
              void Count();
              int  ReadDisplay();
            private:
              int  CurrentCount;
            };








            Back up my hard drive? How do I put it in reverse?
            My Community
            BakGat
            sigpic

            Comment


              #21
              Older versions of PHP will ignore this type of errors but all the currents versions of PHP are made to work somehow like c++ and Java.Because in Java and c++,U will need to declare a variable before initializing it.Its is very much recommended.Its very annoying doing it but programmers in C++ and Java will see it normal.
              So here U were to declare :
              Code:
              $who="";
              We declared $who to null or empty variable.After declaring it to an empty variable,You then asign $_POST to it
              so it will be
              Code:
              $who="";
              $who=$_POST['who'];
              As Gumslone to said,the error is not of important so U can decide to hide it using :
              Code:
              error_reporting("E^NOTICE");
              it is not recommended to hide all errors ,so I will not advise you to use
              Code:
              error_reporting("E^ALL"); or error_reporting(0);

              Comment


                #22
                GumSlone was right from the first place you just didn't get it

                this error is not important just remove ~E_NOTICE from error reporting.

                by removing it means

                // Report all errors except E_NOTICE
                // This is the default value set in php.ini
                error_reporting(E_ALL ^ E_NOTICE);
                Last edited by just_m3.; 10.01.12, 02:58.
                This is ten percent luck, twenty percent skill
                Fifteen percent concentrated power of will
                Five percent pleasure, fifty percent pain

                And a hundred percent reason to remember the name!

                Comment

                Working...
                X