Sending data with POST
Send form data and JSON to PHP with fetch, read it on the server, validate it and reply with JSON.
This lesson is part of the full AJAX tutorial
Registered students: sign in to read every lesson. Others can sign in and enter a Tutorial Access passcode once; the account keeps the access.
Lessons marked Free in the list can be read without a passcode.