ASP中window.confirm的判断问题 谢谢各位大虾

来源:百度知道 编辑:UC知道 时间:2024/05/14 14:47:23
-------------------------------
if trim(request("name"))<>"" & request("gh")<>"" & trim(request("name"))<>"" & trim(request("phone"))<>"" & trim(request("address"))<>"" & trim(request("bphone"))<>"" & trim(request("email"))<>"" & (trim(request("mobile"))<>"" and trim(request("xiao"))<>"") then
response.write "<script language=JavaScript>" & chr(13) & "confirm('您是否确定提交个人通讯簿?现在您将预览到您所填写的内容!');"&" </script>"
if"<script language=JavaScript>" &"confirm('您是否确定提交个人通讯簿?现在您将预览到您所填写的内容!')==true)"&" </script>" then
response.redirect("upinfo2.asp")
else
response.write "<script language=JavaScript>" & chr(13) & &q

<%
if trim(request("name"))<>"" & request("gh")<>"" & trim(request("name"))<>"" & trim(request("phone"))<>"" & trim(request("address"))<>"" & trim(request("bphone"))<>"" & trim(request("email"))<>"" & (trim(request("mobile"))<>"" and trim(request("xiao"))<>"") then
%>
<script language='javascript'>
if(confirm('您是否确定提交个人通讯簿?现在您将预览到您所填写的内容!')==true)
{
window.location.href='upinfo2.asp';
}else{
alert('系统将退回到“填写信息”页面!');
window.location.href = "index2.asp" ;
}
</script>
<%
end if
%>

你的这个思路不太好吧~~~
你应该这样:
<%
if trim(request("name"))<>"" & request("gh")<>"