在程序里写一个htm文件,onload(不记得事件名了,可能不是onload)时用post方法提交用户名和口令,然后在vb写的程序中调用此htm文件。

解决方案 »

  1.   

    在vb程序中,用put语句写一个html文件(我这里没有VB,试不了),再用shellexecute函数打开此文件,提交完后再删除此文件。<html>
    <head>
    </head>
    <body>
    <form action="http://gzfn02/login/login.asp" method="post" name="frminfo">
    <input id="txtuid" type="text" name="txtuid" value="sa" style="display:none">
    <input id="txtpwd" type="password" name="txtpwd" value="sa" style="display:none">
    <script language="vbscript">
    frminfo.submit
    </script>
    </form> 
    </body>