so I have this line in front page:
var x = "Hi";
var y = 123;
xhttp.open("POST", "/toNodeServer", true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send(x, y);
and in the server I have the following:
outer.post('/toNodeServer', function(req, res, next){
var x = req.body
console.log(x);
so the result is it does not send y value, I got this from the terminal: {'Hi': ''}
can anyone please explain what is going on and how to send these two variables?