M
movodo
Unregistered / Unconfirmed
GUEST, unregistred user!
表单如下:
<form name='authform' action='http://cgi-bin/authcgi_login' method='post' onsubmit='return check_input();'>
<script language='JavaScript' >
function check_input() {
with (document.authform) {
if ( uid.value=="" || uid.value.charAt(0) == " " ) {
alert ("Plase input User ID !");
uid.focus();
return false;
}
if ( upwd.value=="" || upwd.value.charAt(0) == " " ) {
alert ("Plase input User Password !");
upwd.focus();
return false;
}
//submit();
}
return true;
}
</script>
<center>
<input type='hidden' name='uact' value='login'>
<table width=80%>
<tr>
<td align=right>User ID :</td>
<td><input type='text' name='uid' size='20' value=''></td>
</tr>
<tr>
<td align=right>User Password :</td>
<td><input type='password' name='upwd' size='20' value=''></td>
</tr>
<tr>
<td colspan=2 align=center><br>
<input type='submit' name='go' value='Login' >
</td>
</tr>
</table>
</center>
</form><br><br><br>
我想要在程序中实现提交 uid,upwd,而不用打开网页.post怎么用呢?
<form name='authform' action='http://cgi-bin/authcgi_login' method='post' onsubmit='return check_input();'>
<script language='JavaScript' >
function check_input() {
with (document.authform) {
if ( uid.value=="" || uid.value.charAt(0) == " " ) {
alert ("Plase input User ID !");
uid.focus();
return false;
}
if ( upwd.value=="" || upwd.value.charAt(0) == " " ) {
alert ("Plase input User Password !");
upwd.focus();
return false;
}
//submit();
}
return true;
}
</script>
<center>
<input type='hidden' name='uact' value='login'>
<table width=80%>
<tr>
<td align=right>User ID :</td>
<td><input type='text' name='uid' size='20' value=''></td>
</tr>
<tr>
<td align=right>User Password :</td>
<td><input type='password' name='upwd' size='20' value=''></td>
</tr>
<tr>
<td colspan=2 align=center><br>
<input type='submit' name='go' value='Login' >
</td>
</tr>
</table>
</center>
</form><br><br><br>
我想要在程序中实现提交 uid,upwd,而不用打开网页.post怎么用呢?