indexing - Notice: Undefined index: status in C:\xampp\htdocs\gameserver\pre.php on line 40 -




when code executes work command error show
notice: undefined index: status in c:\xampp\htdocs\gameserver\pre.php on line 40

notice: undefined index: stats in c:\xampp\htdocs\gameserver\pre.php on line 46
why problem need help.. here code

/$command = (isset($_post['command']) ? $_post['command'] : '');/ if($command=$_post["name"]){

          $command='kick';           var_dump( $query->rcon( $command ) );        }     else if($command=$_post["status"]){          $command='status';           var_dump( $query->rcon( $command ) );      }     else if($command=$_post["stats"]){     /*      / $stats='stats';*/         $command='stats';          var_dump( $query->rcon( $command ) );      }      else if($command=$_post["map"]){         $map='map *';          var_dump( $query->rcon( $command ) );             }     else{         $command= "say ".$_post["fname"];         var_dump( $query->rcon( $command ) );     } }     /*       $command= $_post["status"];*/ 





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -