Reputation: 2277
Is it possible with javascript ? or do I need to create two senders ?
because this don't work
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("textBox="+textBox.value);
xmlhttp.send("textBoxID="+textBox.parentNode.id);
Upvotes: 1
Views: 408
Reputation: 146191
You may try this
xmlhttp.send("textBox="+textBox.value+"&textBoxID="+textBox.parentNode.id);
Send multiple params together.
Upvotes: 1