Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XMLHTTP post form data

Status
Not open for further replies.

Ouch

Programmer
Jul 17, 2001
159
GB
Hi all,
i have this code of a kb article from MS
i am trying to send multiple form feilds via XMLHTTP
the below code shows me how to send on field... how do i send multiple feilds?
eg DataTopSend + "Id=1 Name=fred age=62"

<%
DataToSend = &quot;id=1&quot;
dim xmlhttp
set xmlhttp = server.Createobject(&quot;MSXML2.ServerXMLHTTP&quot;)
xmlhttp.Open &quot;POST&quot;,&quot; xmlhttp.setRequestHeader &quot;Content-Type&quot;, &quot;application/x- xmlhttp.send DataToSend
Response.ContentType = &quot;text/xml&quot;
Response.Write xmlhttp.responsexml.xml
Set xmlhttp = nothing
%>

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top