Multiple variable is parameters

hi there! i’m a new bee. I’m having problem sending two data here.


                        parameters = 'text='+document.getElementById('text').value && 'text2='+document.getElementById('text2').value;
			xmlhttp.open('POST', 'try.php', true);
			xmlhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
			xmlhttp.send(parameters);

text and text2 are my textboxes, but only text2 show its value.

parameters = 'text='+document.getElementById('text').value + '&text2='+document.getElementById('text2').value;

Replace the && with a + and add a &