同上。最近想用VB写一个对PHP程序操作的程序。谢谢。

解决方案 »

  1.   

    1. use webbrowser control:
    How to Send HTTP Post data to a Web Server
    http://abstractvb.com/code.asp?A=948
    2. use ServerXMLHTTP object:Dim xmlhttp As ObjectSet xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")xmlhttp.Open "POST", "http://localserver/test.asp", Falsexmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"xmlhttp.send "Id=1&S=2"Set xmlhttp = Nothing
      

  2.   

    三种思路,一种是象上面saucer的利用XML对象,一种是通过INet对象发送Post数据包。这个代码文档中心有,你可以找一下。另外就是通过webbrowser对象浏览网页并自动填表/提交:http://www.applevb.com/qa/qa000257.htm