我有两个脚本老有问题,请大家帮我看看
第一个:
<script language=javascript>
var temp=confirm("真的要删除这篇文章吗?");
if (temp==true)
<%
set conn=createconn
conn.execute "Friedeldiary '"&id&"'"
set conn=nothing
%>
document.location="mydiary.asp";
else
history.back();
</script>
我不管点击确定或取消,都删除了记录
第二个是关于用户输入日期的判断,不能大于当前日期,其中,EW_this是FORM名称
if ((EW_this.rayear.value.length)+"-"+(EW_this.ramonth.value.length)+"-"+(EW_this.raday.value.length)+" "+(EW_this.rahour.value.length)+":"+(EW_this.ramin.value.length))>当前日期怎么表示{
alert ("不能大于当前日期!")
return false;
}