hi there! I'm having trouble to show my textbox value in xmlhttp ajax below are my codes

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');
I don't know if I did it right, but what I want is to show the values of my input textbox, (text and text2). ANy help would be appreciated.