<%
sql = " select SCode,SDescpt from dbo.SkillSkill"
Set rs = adoconn.execute(sql)
if not rs.eof then
while not rs.eof
SCode = rs.Fields.Item("SCode")
SDescpt = rs.Fields.Item("SDescpt")
%>
<input name="skill" id="skill" type="checkbox" value="<%=SCode %>" >
<%Response.Write( SCode+"."+SDescpt) %>
<input name="man" id="man" type="text" class="SkillMan" placeholder="人数">
<%
i = i + 1
rs.movenext
wend
end if
set rs = nothing
%>
现在数据传到数据库是这样
<%
sql = " select SCode,SDescpt from dbo.SkillSkill"
Set rs = adoconn.execute(sql)
if not rs.eof then
i=1 while not rs.eof
SCode = rs.Fields.Item("SCode")
SDescpt = rs.Fields.Item("SDescpt")
%>
<input name="skill
<%=i%>" id="skill" type="checkbox" value="<%=SCode %>">
<%Response.Write( SCode+"."+SDescpt) %>
<input name="man
<%=i%>" id="man" type="text" class="SkillMan" placeholder="人数">
<%
i = i + 1
rs.movenext
wend
end if
set rs = nothing
%>
<input type="hidden" name="num" value="<%=i%>" />
获取内容
num=request("num")&""
if isnumeric(num) then
num=cint(num)-1
for i=1 to num
skill=request("skill"&i)
if skill<>"" then
response.Write skill&"|"&request("man"&i)&"<br>"
end if
next
end if
#2
我之前的通过一个form点击提交到上传处理页,上传数据库这样写的
model = trim(request.Form("model"))
worker = trim(request.Form("worker"))
skill=trim(request.Form("skill"))
man=trim(request.Form("man"))
detail=trim(request.Form("detail"))
<%
sql = " select SCode,SDescpt from dbo.SkillSkill"
Set rs = adoconn.execute(sql)
if not rs.eof then
i=1 while not rs.eof
SCode = rs.Fields.Item("SCode")
SDescpt = rs.Fields.Item("SDescpt")
%>
<input name="skill
<%=i%>" id="skill" type="checkbox" value="<%=SCode %>">
<%Response.Write( SCode+"."+SDescpt) %>
<input name="man
<%=i%>" id="man" type="text" class="SkillMan" placeholder="人数">
<%
i = i + 1
rs.movenext
wend
end if
set rs = nothing
%>
<input type="hidden" name="num" value="<%=i%>" />
获取内容
num=request("num")&""
if isnumeric(num) then
num=cint(num)-1
for i=1 to num
skill=request("skill"&i)
if skill<>"" then
response.Write skill&"|"&request("man"&i)&"<br>"
end if
next
end if
我之前的通过一个form点击提交到上传处理页,上传数据库这样写的
model = trim(request.Form("model"))
worker = trim(request.Form("worker"))
skill=trim(request.Form("skill"))
man=trim(request.Form("man"))
detail=trim(request.Form("detail"))
<%
sql = " select SCode,SDescpt from dbo.SkillSkill"
Set rs = adoconn.execute(sql)
if not rs.eof then
i=1 while not rs.eof
SCode = rs.Fields.Item("SCode")
SDescpt = rs.Fields.Item("SDescpt")
%>
<input name="skill
<%=i%>" id="skill" type="checkbox" value="<%=SCode %>">
<%Response.Write( SCode+"."+SDescpt) %>
<input name="man
<%=i%>" id="man" type="text" class="SkillMan" placeholder="人数">
<%
i = i + 1
rs.movenext
wend
end if
set rs = nothing
%>
<input type="hidden" name="num" value="<%=i%>" />
获取内容
num=request("num")&""
if isnumeric(num) then
num=cint(num)-1
for i=1 to num
skill=request("skill"&i)
if skill<>"" then
response.Write skill&"|"&request("man"&i)&"<br>"
end if
next
end if
<%
sql = " select SCode,SDescpt from dbo.SkillSkill"
Set rs = adoconn.execute(sql)
if not rs.eof then
i=1 while not rs.eof
SCode = rs.Fields.Item("SCode")
SDescpt = rs.Fields.Item("SDescpt")
%>
<input name="skill
<%=i%>" id="skill" type="checkbox" value="<%=SCode %>">
<%Response.Write( SCode+"."+SDescpt) %>
<input name="man
<%=i%>" id="man" type="text" class="SkillMan" placeholder="人数">
<%
i = i + 1
rs.movenext
wend
end if
set rs = nothing
%>
<input type="hidden" name="num" value="<%=i%>" />
获取内容
num=request("num")&""
if isnumeric(num) then
num=cint(num)-1
for i=1 to num
skill=request("skill"&i)
if skill<>"" then
response.Write skill&"|"&request("man"&i)&"<br>"
end if
next
end if
我之前的通过一个form点击提交到上传处理页,上传数据库这样写的
model = trim(request.Form("model"))
worker = trim(request.Form("worker"))
skill=trim(request.Form("skill"))
man=trim(request.Form("man"))
detail=trim(request.Form("detail"))
<%
sql = " select SCode,SDescpt from dbo.SkillSkill"
Set rs = adoconn.execute(sql)
if not rs.eof then
i=1 while not rs.eof
SCode = rs.Fields.Item("SCode")
SDescpt = rs.Fields.Item("SDescpt")
%>
<input name="skill
<%=i%>" id="skill" type="checkbox" value="<%=SCode %>">
<%Response.Write( SCode+"."+SDescpt) %>
<input name="man
<%=i%>" id="man" type="text" class="SkillMan" placeholder="人数">
<%
i = i + 1
rs.movenext
wend
end if
set rs = nothing
%>
<input type="hidden" name="num" value="<%=i%>" />
获取内容
num=request("num")&""
if isnumeric(num) then
num=cint(num)-1
for i=1 to num
skill=request("skill"&i)
if skill<>"" then
response.Write skill&"|"&request("man"&i)&"<br>"
end if
next
end if
我之前的通过一个form点击提交到上传处理页,上传数据库这样写的
model = trim(request.Form("model"))
worker = trim(request.Form("worker"))
skill=trim(request.Form("skill"))
man=trim(request.Form("man"))
detail=trim(request.Form("detail"))
<%
sql = " select SCode,SDescpt from dbo.SkillSkill"
Set rs = adoconn.execute(sql)
if not rs.eof then
i=1 while not rs.eof
SCode = rs.Fields.Item("SCode")
SDescpt = rs.Fields.Item("SDescpt")
%>
<input name="skill
<%=i%>" id="skill" type="checkbox" value="<%=SCode %>">
<%Response.Write( SCode+"."+SDescpt) %>
<input name="man
<%=i%>" id="man" type="text" class="SkillMan" placeholder="人数">
<%
i = i + 1
rs.movenext
wend
end if
set rs = nothing
%>
<input type="hidden" name="num" value="<%=i%>" />
获取内容
num=request("num")&""
if isnumeric(num) then
num=cint(num)-1
for i=1 to num
skill=request("skill"&i)
if skill<>"" then
response.Write skill&"|"&request("man"&i)&"<br>"
end if
next
end if
我之前的通过一个form点击提交到上传处理页,上传数据库这样写的
model = trim(request.Form("model"))
worker = trim(request.Form("worker"))
skill=trim(request.Form("skill"))
man=trim(request.Form("man"))
detail=trim(request.Form("detail"))