Reputation: 1
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
Reputation: 699
Firstly, you can upgrade your Xdebug version to resolve the issue
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