XMLHTTP question

Results 1 to 2 of 2

Thread: XMLHTTP question

  1. #1
    Join Date
    Dec 1969

    Default XMLHTTP question

    I have a search page on one site and need to put this page on another site.I&#039;m using the following code which seems to be ok <BR><BR> &#060;%<BR> <BR> Dim objXMLHTTP, xml<BR><BR> <BR> Set xml = Server.CreateObject("Microsoft.XMLHTTP")<BR> <BR> xml.Open "GET", "http://www.blah.com/xyz.asp?TheAD=SI079&Display=All&State=All", False<BR> <BR> &#039; Pull the data from the web page<BR> xml.Send<BR><BR> Response.Write xml.responseText<BR> <BR> <BR> Set xml = Nothing<BR>%&#062;<BR><BR><BR>but <BR><BR>where I have TheAD=SI079, I need to put in a value submitted by a form. Any ideas<BR><BR>Thanks

  2. #2
    Join Date
    Dec 1969

    Default nothing to do with XMLHTTP

    just simple string concatenation<BR><BR><BR>strVar = Request.Form ("YourField")<BR><BR>xml.Open "GET", "http://www.blah.com/xyz.asp?" & strVar & "&Display=All&State=All", False<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts