主题:  点选单选框后,再点击按钮,删除数据的方法

civi

职务:普通成员
等级:1
金币:0.0
发贴:19
注册:2002/7/24 11:30:28
#12003/10/22 16:24:40
我的form名为form1
列表是这样写的


<%=rs("name")%>

缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620
注册:2004/1/14 19:14:47
#22003/10/22 16:44:11
是一次删除多个还是就一个?

如果是一个,那么">
然后用request.form的方法获取id值就可以啦



civi

职务:普通成员
等级:1
金币:0.0
发贴:19
注册:2002/7/24 11:30:28
#32003/10/22 17:13:51
谢谢
是一次删一个,能不能写个具体点的,我正在学习阶段。



civi

职务:普通成员
等级:1
金币:0.0
发贴:19
注册:2002/7/24 11:30:28
#42003/10/23 11:06:52
好了,谢谢帮忙,我会努力学习的。
还有个小问题
dim mydate=aa'aa是我从数据库里动太调出来的字段怎么写呀



缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620
注册:2004/1/14 19:14:47
#52003/10/23 11:15:39
字段?还是值?
dim mydate
mydate = rs("字段")


还有,asp中不允许dim 变量=值这样的写法



civi

职务:普通成员
等级:1
金币:0.0
发贴:19
注册:2002/7/24 11:30:28
#62003/10/23 11:20:50
谢谢,我是想把日期2003-5-6改成2003-05-06
在网上找了个
<%
                                    dim myDate
                                    myDate = rs("n_time")
                                    function formatDate(myDate)
                                    
getYear = year(myDate)
getMonth = month(myDate)
getDay = day(myDate)
if getMonth < 10 then getMonth = "0" & getMonth
if getDay < 10 then getDay = "0" & getDay
getDate = getYear & "年" & getMonth & "月" & getDay & "日"
formatDate = getDate
end function'测试
str="8-13-2003" '在这里你换成相应的你的数据值,比如数据库里的数据10:26 2003-10-23
response.write formatDate(str) '输出:2003年08月13日
                                    %>
我的日期字段是n_time
可是总是加不上,能帮我看看吗?



缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620
注册:2004/1/14 19:14:47
#72003/10/23 12:52:39
<%
function formatDate(myDate)

getYear = year(myDate)
getMonth = month(myDate)
getDay = day(myDate)
if getMonth < 10 then getMonth = "0" & getMonth
if getDay < 10 then getDay = "0" & getDay
getDate = getYear & "年" & getMonth & "月" & getDay & "日"
formatDate = getDate
end function

str=rs("n_time")
response.write formatDate(str)

%>



civi

职务:普通成员
等级:1
金币:0.0
发贴:19
注册:2002/7/24 11:30:28
#82003/10/23 13:15:15
不行呀,他报
function formatDate(myDate)错



缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620
注册:2004/1/14 19:14:47
#92003/10/23 13:17:36
什么错?



civi

职务:普通成员
等级:1
金币:0.0
发贴:19
注册:2002/7/24 11:30:28
#102003/10/23 13:23:33
错误类型:
Microsoft VBScript 编译器错误 (0x800A03EA)
/haitai/manage/news_list1.asp, 第 265 行
function formatDate(myDate)

两个方法都报这个错