Guys i have used one field per form in ajax but i am look for any example where i can send two or more inputs (querys) to ajax page!

here it sending one captcha input on first line is there any options i can send some thing like this

<input name="captcha" type="text"> <input name="txtname" type="text">
i mean something
Datatosend = "action=process&captcha=" + escape(theForm.captcha.value);
DatatoSend == DatatoSend + "username=" + escape(theForm.txtname.value);

??????? please help

Original Code!

DataToSend = "action=process&captcha=" + escape(theForm.captcha.value);
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
sReply = xmlhttp.responseText;