Yes, that above error message relate to the fields of the form. If you want to handle that data sending part, need to use a server side language.

When you use JS basic way to send is with URL and security wise, not good. So you have to submit it to the server and continue.