Skip to content
PHP Logo

What is the difference between $_Post and $_POST in PHP?

The issue is that PHP is case-sensitive, so using $_Post instead of $_POST will not work as expected. To solve this issue, always use the correct case for superglobal variables like $_POST when accessing form data submitted via POST method in PHP.

php
// Incorrect usage
$name = $_Post['name'];

// Correct usage
$name = $_POST['name'];