Dhammika Wijesinghe
Dhammika Wijesinghe

Reputation: 1

PHP Xdebug dosen't show variables

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?

Upvotes: 0

Views: 46

Answers (1)

Mainul Hasan
Mainul Hasan

Reputation: 699

  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"];
}

Upvotes: 0

Related Questions