ASP代码我看不懂,,,高手帮我看看!!!!!!!!

来源:百度知道 编辑:UC知道 时间:2024/05/18 10:41:22
if not isnumeric(id) or v="" or chk="" or ltime="" then
response.write "<script>alert('投票失败!');history.back();</script>"
response.end
end if
if cdate(ltime)<date() then
response.write "<script>alert('投票有效时间已过,投票已经停止!');history.back();</script>"
response.end
end if]]

什么意思

f not isnumeric(id) or v="" or chk="" or ltime="" then
response.write "<script>alert('投票失败!');history.back();</script>"
response.end
end if
以上代码是在判断如果几个选择为空时。输出投票失败对话框。并返回到上一页

以下代码是在判断设置投票的最后时间是否小于当前投票时间如果小于就显示
“投票有效时间已过,投票已经停止”并且返回到上一页
if cdate(ltime)<date() then
response.write "<script>alert('投票有效时间已过,投票已经停止!');history.back();</script>"
response.end
end if