asp中如何实现必须选取单选框的内容才能提交!~

来源:百度知道 编辑:UC知道 时间:2024/06/04 02:25:26
asp中如何实现必须选取单选框的内容才能提交!~ 如果不选就不让提交!~什么命令???

在提交页面填上

if title="" or come="" then
response.Write("请保持完整性")

给你完整的,你自己试试看就知道了

<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from lianxi"
rs.open sql,conn,1,3
rs.addnew
title=request.form("title")
zuozhe=request.form("zuozhe")
lianxi=request.form("lianxi")
if title="" or zuozhe="" or lianxi="" then
response.Write("请保持完整性")
else
rs("title")=title
rs("zuozhe")=zuozhe
rs("lianxi")=lianxi
rs.update
rs.close
end if
response.write "添加完成,感谢您的支持,谢谢!!"
%>