php - Ajax Post 500 server error - Stack Overflow

PHOTO EMBED

Wed Jul 20 2022 12:17:56 GMT+0000 (Coordinated Universal Time)

Saved by @kalehm

<?php
ini_set('display_errors',1);
error_reporting(E_ALL);


Instead of:
$user_id = _POST['user_id'];
Or
$user_id = $POST['user_id'];

It should read:
$user_id = $_POST['user_id'];
content_copyCOPY

https://stackoverflow.com/questions/17181113/ajax-post-500-server-error