在线求助,麻烦高手帮帮忙,在用户点提交的时候弹出一个提示框,确定就继续,取消就返回。

dbetter 2007-03-26 06:23:58
如题:谢谢

form name=form1 method=post action=deal.asp?id=<%=request("id")%>>
<tr>
<td valign=top><%rs.close
set rs=nothing%>
<%set rs=server.CreateObject("adodb.recordset")
sql="select * from choice where extends="&request("id")
rs.open sql,connstr
if rs.eof and rs.bof then
response.write "您还没有添加投票选项!"
else
i=1
do while not rs.eof%>
<table width=100% border=0 cellspacing=0 cellpadding=3>
<tr>
<td width=15%><div align=left>
<%
if types=true then
if rs("IsDefault")=true then
%>
<input name=choice type=checkbox id=choice value=<%=rs("id")%>>
<%else%>
<input name=choice type=checkbox id=choice value=<%=rs("id")%>>
<%end if%>
<%else
if rs("IsDefault")=true then
%>
<input type=radio name=choice value=<%=rs("id")%> checked>
<%else%>
<input type=radio name=choice value=<%=rs("id")%>>
<%end if%>
<%end if%>
</div></td>
<td width=19%><div align=left><%=rs("choice")%> </div></td>
<td width=66%><%=rs("xy")%></td>
</tr>
</table>
<%rs.movenext
loop
rs.close
set rs=nothing%>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td><div align="center">
<input name=ids2 type=hidden id=ids2 value=<%=request("id")%>>
<input type=image src=images/button1.gif name=Submit22>
   <a href=# onclick=javascript:openwin('show.asp?id=<%=request("id")%>','600','400')><img src=images/button2.gif width=50 height=20 border=0></a></div></td>
</tr>
</table></td>
</tr>
</form>
...全文
277 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
hymxtang 2007-03-27
  • 打赏
  • 举报
回复
呵~更晚
cow8063 2007-03-27
  • 打赏
  • 举报
回复
晚了
learsu 2007-03-26
  • 打赏
  • 举报
回复
onclick="return confirm('您确认吗?')"
leohuang 2007-03-26
  • 打赏
  • 举报
回复
<script type="text/javascript">
function check(){
return confirm("确认?");
}
</script>

<form onsubmit="return check();">
....
ChaoYu 2007-03-26
  • 打赏
  • 举报
回复
<input type="button" name="btok" id="btok" value="submit" onclick="if(confirm('确定要XX嘛?')){form1.submit();}">
這個是對的。我來晚了
liangtao95 2007-03-26
  • 打赏
  • 举报
回复
<SCRIPT LANGUAGE="JavaScript">
<!--

if (confirm("是否删除!"))
{
alert("删除");
}
else
{
alert("保留");
}
//-->
</SCRIPT>
Fufay 2007-03-26
  • 打赏
  • 举报
回复
<input type="button" name="btok" id="btok" value="submit" onclick="if(confirm('确定要XX嘛?')){form1.submit();}">

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧