My function returns the following error:
Uncaught SyntaxError: Unexpected string
How can I fix it?
function setarRegistro() {
campos = "teste="+encodeURI(document.getElementById('teste').value).
"&nome="+encodeURI(document.getElementById('nome').value).
"&sobrenome="+encodeURI(document.getElementById('sobrenome').value).
"&usuario="+encodeURI(document.getElementById('usuario').value).
"&email="+encodeURI(document.getElementById('email').value).
"&senha="+encodeURI(document.getElementById('senha').value);
}