Dup Goto 📝

SendAjax

PT2/aw/lang/js 07-31 13:46:40
To Pop
9 lines, 32 words, 336 chars Monday 2023-07-31 13:46:40

Async/Await

See this stackoverflow question.

PHP and JSON

In the PHP use

$data = json_decode(file_get_contents('php://input'), true);

to get JSON, **not $_POST — the latter is for sending forms.