vbscript提取表单的数据

来源:百度知道 编辑:UC知道 时间:2024/06/16 07:30:46
<SCRIPT language=vbscript>
sub CheckFormin()
if thisForm1.userName.value="" then
msgbox "请填写您的用户名!"
thisForm1.userName.focus()
exit sub
end if
if thisForm1.password.value="" then
msgbox "请填写您的密码!"
thisForm1.password.focus()
exit sub
end if
if thisForm1.checktype.value1="1" then
thisForm1.action="chklogin1.asp?action=P"
end if
if thisForm1.checktype.value1="0" then
thisForm1.action="chklogin1.asp?action=C"
end if
thisForm1.submit()
end sub

</SCRIPT>
我想通过分别提交的方式实现
可是为什么会出现不反应的情况呢
其中checktype
是radio

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>

<span id="aa"></span>
<SCRIPT language=vbscript>
sub tijiao_onclick()
if thisform1.username.value="" then
msgbox "请填写您的用户名!"
thisform1.username.focus()
exit sub
end if
if thisform1.password.value="" then