-
Ajax Double Query!
Hi,
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.open("POST",'process.php',false);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send(DataToSend);
sReply = xmlhttp.responseText;
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks