After the user has entered all the correct data, the final step is to submit that data. Since you can't navigate an app in the traditional sense, one way you can submit the form contents is to use `XMLHttpRequest` (XHR). Using the new `FormData` object, you can wrap form content in a way that the XHR object can use to send to your server.

The example here uses an event handler for the submit event. On the submit event, it creates a new FormData object with the form content and then sends that to the server using XMLHttpRequest.

Registration
User Name
Password
Email
Telephone number
City
State
Birth year
How did you learn about our site? Through a friend
Read about it on a website
Heard a radio advertisement
Other source
I agree to the terms of service for this site.
Form submitted.