日期:2014-05-18  浏览次数:20898 次

80分 如何在应用程序中自动提交网页数据?c#或delphi
网页的源程序如下:

<html>
<head>
<title>宽带计费系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/skins/default/css/eyouipb.css" type="text/css">
<script language="javascript">
function fastlogin()
{
window.open("/php/fast_login.html", "fastlogin", "toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,menubar=no,width=380,height=200,top=0,left=100");
};
function submitit(typename)
{
document.user.logintype.value=typename;
document.user.submit();
};
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<form action=http://10.10.1.1/php/user_cmd.php method=post name=user> <table width="638" border="0" cellspacing="0" cellpadding="0" height="68">
<input type=hidden name=logintype>
<tr>
<td background="/skins/default/image/new-tittle-1.jpg" valign="bottom" align="center">
<div align="center"> <font color="#B33535">IPB Version 3.6.2 </font></div>
</td>
</tr>
</table>
<table width="638" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" height="75"><img src="/skins/default/image/new-tittle-2.jpg" width="638" height="76"></td>
</tr>
</table>
<table width="638" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="429"><img src="/skins/default/image/new-3.jpg" width="429" height="28"></td>
<td rowspan="3" background="/skins/default/image/new-5.jpg">
<div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="191">
<tr>
<td height="2"><img src="/skins/default/image/bulletin-tittle.gif" width="187" height="28"></td>
</tr>
<tr>
<td height="144" bgcolor="#C47878" valign="top">
<div>
<script language=javascript>
document.writeln("<marquee id=\"go\" height=\"150\" scrollamount=\"1\" scrollDelay=\"1\" direction=\"up\" onmouseover=\"go.stop()\" onmouseout=\"go.start()\" >");
document.writeln("<table width=\"165\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln(" <tr> ");
document.writeln(" <td height=\"30\"><font color=\"#ffffff\">&nbsp;&nbsp;&nbsp;<br>");
document.writeln(" 输入用户名密码后直接按回车,请不要点击连线国内,连线国际等按钮。<br>");document.writeln("误点连线国内的同志,请在10.10.1.1页面输入用户名密码后点击右下角离线按钮,然后重新登录即可。<br>");document.writeln("如果要离开机器,请点击离线后关机,避免外人用自己的用户名密码上网,造成不良后果。<br>");document.writeln("对于学生宿舍的同学,一经发现有盗用他人ip号码的事件,第一次警告,第二次发现由管理员封id号码。<br>");docum