html表单验证确认密码(关于HTML表单控件-密码输入框)

本文目录
关于HTML表单控件-密码输入框
《html》
《head》《title》输入用户姓名和密码 《/title》《/head》
《body》
《form action=“在单选框或者复选框中代表选中的值
《/form》 --》
参考资料:百度百科 HTML
html中js表单验证,如何验证由六位数据和字母混合成成的密码,验证错误有弹出框
在js里面写:
var password = $(“.password“).val();
var passwordReg = /^[\\da-zA-Z]{6,20}$/;
if(!passwordReg.test(password)){
alert(’密码不符合要求’);
return;
}
有不懂可以继续追问
html5表单验证问题,我这代码写的没错,为什么老是提交
将save.asp改成如下试试:
你的代码没有问题啊,是不是你的数据库驱动用了driver?如果是建议用provider那次一个朋友也遇到过这个事情,代码没错,但是数据库驱动用driver就是无法做出来!
《%@LANGUAGE=“VBSCRIPT“ CODEPAGE=“936“%》
《!-- #include file “conn.asp“ --》
《% Dim countname
countname=Request.Form(“GsmName1“)&Request.Form(“GsmName2“)&Request.Form(“GsmName3“)&Request.Form(“GsmName4“)
set rs2 = server.CreateObject(“adodb.recordset“)
sql2 = “select gsm from tblgsm where gsm =“&countname
rs2.open sql2,conn,1,1
if rs2.eof then
response.Write “《script》alert(’对不起,该序列ID号不存在!’);history.go(-1);《/script》“
response.End()
else
Set Rs1 = Server.CreateObject(“Adodb.Recordset“)
Sql = “Select * from tblSell where (id is null)“
Rs1.Open Sql, Conn, 1, 3
Rs1.Addnew()
Rs1(“Gsm1“) = Request.Form(“Gsm1“)
Rs1(“GsmName1“) = countname
Rs1(“FirstName“) = Request.Form(“FirstName“)
Rs1(“Phone“) = Request.Form(“Phone“)
Rs1.Update
Rs1.Close
set Rs1 =nothing
rs2.close()
set rs2=nothing
End If
Call OutScriptLoc(“alert(’您的资料已经成功提交.’)“,“jszx.asp“)
Response.End
%》

更多文章:
repercussions(都是余波,repercussions和aftermath有什么区别啊)
2026年10月11日 09:00
dropdownlist 绑定(DropDownList 绑定所有项 并 显示指定项)
2026年10月11日 08:50
易语言网页api接口怎么调用(易语言,怎么读取网页json的api)
2026年10月11日 08:00
majority of(the majority of 和 a majority of的区别以及用法例句)
2026年10月11日 07:40
another time(another time和other time的区别)
2026年10月11日 05:00




