PHP Xdebug dosen't show variables

40 Views Asked by At

PHP Xdebug always says POST (superglobal) undefined but web program works fine. Either of other local variables or Superglobals aren't shown. I use XAMPP as local server. What could be the problem?

1

There are 1 best solutions below

0
M Mainul Hasan On
  1. Firstly, you can upgrade your Xdebug version to resolve the issue

  2. You need to use a conditional statement isset() on the form's input name element, for example,

if(isset($_POST['name'])){
    $name=$_POST["name"];
}