The link below provides an AJAX method with working example on how to send form using Javascript and jQuery to any POST handler.
Migrating / Moving WordPress Site Handy Documentation
Reset the password when you need access but don’t have the admin password
https://codex.wordpress.org/Resetting_Your_Password
Update the URL when you change domain
https://codex.wordpress.org/Moving_WordPress