注册 登录
编程论坛 ASP技术论坛

几个数值传递问题

inking0801 发布于 2011-02-19 23:24, 418 次点击
问题一
<input type="button" name="Submit" value="删除产品" onclick="javascript:if(confirm('确定删除?删除后不可恢复!')){window.location.href='a_cp_gl.asp?act=del&id=<%=rs("cpel_id")%>’;}else{history.go(0);}" />
<%
if request("act")="del" then
set rs=server.createobject("adodb.recordset")
id=Request.QueryString("id")
sql="select * from cpel where cpel_id like '%"&id&"%'"问题!!段使用cpel_id="&id报数值错误
rs.open sql,conn,2,3
rs.delete
rs.update
Response.Write "<script> alert('新闻刪除成功!');window.location.href='a_cp_gl.asp';</script>"
end if
%>
问题!在跳转回a_cp_gl.asp页面的时候需要传递CPEL_ID和NANE两个URL参数 怎们解决
问题二
此问题其实和问题一一样

SQ="select * from cpel where cpel_ss_cpyl like '%"&a&"%' 报错此段无法进行排序 "
1 回复
#2
wangjy5002011-02-19 23:28
Response.Write "<script> alert('新闻刪除成功!');window.location.href='a_cp_gl.asp?CPEL_ID="&ID&"&NANE="&name&"';</script>"


[ 本帖最后由 wangjy500 于 2011-2-20 11:27 编辑 ]
1